summaryrefslogtreecommitdiff
path: root/rtl/gfx/gfx_raster_fine.sv
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2023-11-12 22:54:53 -0600
committerAlejandro Soto <alejandro@34project.org>2023-11-14 07:48:52 -0600
commitd2e51054b4361639d3c9ae9a69437b157f2fbf9f (patch)
tree83dd9d88b2abcaba70b9653c18ddba40facf4035 /rtl/gfx/gfx_raster_fine.sv
parent58d647a047e8761ad1f619173ee51dd4b65831ac (diff)
rtl/gfx: pass barycentric coords from fine raster to fragment shading
Diffstat (limited to 'rtl/gfx/gfx_raster_fine.sv')
-rw-r--r--rtl/gfx/gfx_raster_fine.sv2
1 files changed, 2 insertions, 0 deletions
diff --git a/rtl/gfx/gfx_raster_fine.sv b/rtl/gfx/gfx_raster_fine.sv
index 2cb9c6a..05d3b0d 100644
--- a/rtl/gfx/gfx_raster_fine.sv
+++ b/rtl/gfx/gfx_raster_fine.sv
@@ -11,6 +11,7 @@ module gfx_raster_fine
input logic stall,
output frag_xy fragment,
+ output fixed_tri barys,
output logic paint
);
@@ -34,6 +35,7 @@ module gfx_raster_fine
always_ff @(posedge clk)
if (!stall) begin
+ barys <= edges;
paint <= signs == 0;
fragment <= fragment_hold;