diff options
| author | Alejandro Soto <alejandro@34project.org> | 2023-11-12 23:30:50 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2023-11-14 07:48:52 -0600 |
| commit | 01eaa9a9175a7cb313ff58182a31a964dbac7071 (patch) | |
| tree | 336329a965718c193ce21d1ae3d0e1a09fb543e9 /rtl/gfx/gfx_raster.sv | |
| parent | d2e51054b4361639d3c9ae9a69437b157f2fbf9f (diff) | |
rtl/gfx: add z, w coordinates to vertices
Diffstat (limited to 'rtl/gfx/gfx_raster.sv')
| -rw-r--r-- | rtl/gfx/gfx_raster.sv | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/rtl/gfx/gfx_raster.sv b/rtl/gfx/gfx_raster.sv index ab282e7..e37282b 100644 --- a/rtl/gfx/gfx_raster.sv +++ b/rtl/gfx/gfx_raster.sv @@ -5,7 +5,7 @@ module gfx_raster input logic clk, rst_n, - input raster_xy vertex_a, + input raster_xyzw vertex_a, vertex_b, vertex_c, input logic in_valid, @@ -13,10 +13,16 @@ module gfx_raster output frag_xy_lanes fragments, output bary_lanes barys, + output fixed_tri ws, input logic out_ready, output paint_lanes out_valid ); + //TODO: Es exactamente el mismo asunto que offsets + assign ws[0] = vertex_a.zw.w; + assign ws[1] = vertex_b.zw.w; + assign ws[2] = vertex_c.zw.w; + logic setup_stall, setup_valid; gfx_pipeline_flow #(.STAGES(`GFX_SETUP_STAGES)) setup_flow @@ -35,6 +41,9 @@ module gfx_raster gfx_setup setup ( .stall(setup_stall), + .vertex_a(vertex_a.xy), + .vertex_b(vertex_b.xy), + .vertex_c(vertex_c.xy), .* ); |
