diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-22 08:25:44 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-22 08:25:44 -0600 |
| commit | 08d2e52cd0120e5a04656cd7c180fc3f1c1f3117 (patch) | |
| tree | 5d8cc9c10ecd7c9a0e4cd5eb0e5a8f8ae89bafaf /rtl/gfx/gfx_rop.sv | |
| parent | 60e7f0faeacbb471dde4cb6b25743bc29e99bb44 (diff) | |
rtl/gfx: add command registers for dual fb addresses
Diffstat (limited to 'rtl/gfx/gfx_rop.sv')
| -rw-r--r-- | rtl/gfx/gfx_rop.sv | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rtl/gfx/gfx_rop.sv b/rtl/gfx/gfx_rop.sv index dcdafe0..3e6ef35 100644 --- a/rtl/gfx/gfx_rop.sv +++ b/rtl/gfx/gfx_rop.sv @@ -5,6 +5,8 @@ module gfx_rop input logic clk, rst_n, + input vram_addr frag_base, + input frag_paint in, input logic in_valid, output logic in_ready, @@ -12,7 +14,7 @@ module gfx_rop input logic rop_waitrequest, output logic rop_write, output vram_word rop_writedata, - output half_coord rop_address, + output vram_addr rop_address, output linear_coord mask_addr, output logic mask_assert @@ -32,7 +34,7 @@ module gfx_rop assign {color_hi, color_lo} = hold.color; assign mask_addr = hold.addr; - assign rop_address = {hold.addr, hi}; + assign rop_address = frag_base + {5'd0, hold.addr, hi}; assign rop_writedata = hi ? color_hi : color_lo; always_comb begin |
