Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add VI_CTRL_ANTIALIAS_MODE_0 + oot comments #89

Merged
merged 2 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions include/PR/rcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -560,10 +560,11 @@
#define VI_CTRL_DIVOT_ON 0x00010 /* 4: default = on */
#define VI_CTRL_SERRATE_ON 0x00040 /* 6: on if interlaced */
#define VI_CTRL_ANTIALIAS_MASK 0x00300 /* [9:8] anti-alias mode */
#define VI_CTRL_ANTIALIAS_MODE_1 0x00100 /* Bit [9:8] anti-alias mode */
#define VI_CTRL_ANTIALIAS_MODE_2 0x00200 /* Bit [9:8] anti-alias mode */
#define VI_CTRL_ANTIALIAS_MODE_3 0x00300 /* Bit [9:8] anti-alias mode */
#define VI_CTRL_PIXEL_ADV_MASK 0x01000 /* [15:12] pixel advance mode? */
#define VI_CTRL_ANTIALIAS_MODE_0 0x00000 /* Bit [9:8] anti-alias mode: AA enabled, resampling enabled, always fetch extra lines */
#define VI_CTRL_ANTIALIAS_MODE_1 0x00100 /* Bit [9:8] anti-alias mode: AA enabled, resampling enabled, fetch extra lines as-needed */
#define VI_CTRL_ANTIALIAS_MODE_2 0x00200 /* Bit [9:8] anti-alias mode: AA disabled, resampling enabled, operate as if everything is covered */
#define VI_CTRL_ANTIALIAS_MODE_3 0x00300 /* Bit [9:8] anti-alias mode: AA disabled, resampling disabled, replicate pixels */
#define VI_CTRL_PIXEL_ADV_MASK 0x0F000 /* [15:12] pixel advance mode? */
#define VI_CTRL_PIXEL_ADV_1 0x01000 /* Bit [15:12] pixel advance mode? */
#define VI_CTRL_PIXEL_ADV_2 0x02000 /* Bit [15:12] pixel advance mode? */
#define VI_CTRL_PIXEL_ADV_3 0x03000 /* Bit [15:12] pixel advance mode? */
Expand Down
4 changes: 0 additions & 4 deletions include/PRinternal/viint.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@
#define VI_STATE_REPEATLINE 0x40 // repeat line?
#define VI_STATE_FADE 0x80 // fade

#define VI_CTRL_ANTIALIAS_MODE_3 0x00300 /* Bit [9:8] anti-alias mode */
#define VI_CTRL_ANTIALIAS_MODE_2 0x00200 /* Bit [9:8] anti-alias mode */
#define VI_CTRL_ANTIALIAS_MODE_1 0x00100 /* Bit [9:8] anti-alias mode */

#define VI_SCALE_MASK 0xfff //see rcp scale_x/scale_y
#define VI_2_10_FPART_MASK 0x3ff
#define VI_SUBPIXEL_SH 0x10
Expand Down
366 changes: 185 additions & 181 deletions src/io/vitbl.c

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions src/vimodes/vimodefpalhaf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeFpalHaf1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(640), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(640), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodefpalhan1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeFpalHan1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(1280), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(1280), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodefpallaf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeFpalLaf1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodefpallaf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeFpalLaf2 = {
{
// comRegs
VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(58, 30, 4, 69), // burst
VSYNC(624), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
19 changes: 10 additions & 9 deletions src/vimodes/vimodefpallan2.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ OSViMode osViModeFpalLan2 = {
OS_VI_FPAL_LAN2, // type
{
// comRegs
VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(58, 30, 4, 69), // burst
VSYNC(625), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_ANTIALIAS_MODE_0 |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(58, 30, 4, 69), // burst
VSYNC(625), // vSync
HSYNC(3177, 23), // hSync
LEAP(3183, 3181), // leap
HSTART(128, 768), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodempalhaf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeMpalHaf1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(640), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(640), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodempalhan1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeMpalHan1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(1280), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(1280), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodempallaf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeMpalLaf1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodempallaf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeMpalLaf2 = {
{
// comRegs
VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 30, 5, 70), // burst
VSYNC(524), // vSync
HSYNC(3088, 0), // hSync
LEAP(3100, 3100), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
19 changes: 10 additions & 9 deletions src/vimodes/vimodempallan2.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,16 @@ OSViMode osViModeMpalLan2 = {
OS_VI_MPAL_LAN2, // type
{
// comRegs
VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 30, 5, 70), // burst
VSYNC(525), // vSync
HSYNC(3089, 4), // hSync
LEAP(3097, 3098), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_ANTIALIAS_MODE_0 |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 30, 5, 70), // burst
VSYNC(525), // vSync
HSYNC(3089, 4), // hSync
LEAP(3097, 3098), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodentschaf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeNtscHaf1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(640), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(640), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodentschan1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeNtscHan1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(1280), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(1280), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(1, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodentsclaf1.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeNtscLaf1 = {
{
// comRegs
VI_CTRL_TYPE_16 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
18 changes: 9 additions & 9 deletions src/vimodes/vimodentsclaf2.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@ OSViMode osViModeNtscLaf2 = {
{
// comRegs
VI_CTRL_TYPE_32 | VI_CTRL_GAMMA_DITHER_ON | VI_CTRL_GAMMA_ON | VI_CTRL_DIVOT_ON | VI_CTRL_SERRATE_ON |
VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
VI_CTRL_ANTIALIAS_MODE_0 | VI_CTRL_PIXEL_ADV_3, // ctrl
WIDTH(320), // width
BURST(57, 34, 5, 62), // burst
VSYNC(524), // vSync
HSYNC(3093, 0), // hSync
LEAP(3093, 3093), // leap
HSTART(108, 748), // hStart
SCALE(2, 0), // xScale
VCURRENT(0), // vCurrent
},
{ // fldRegs
{
Expand Down
Loading
Loading