From 081a8a3ba8bfe036f31da53f9c041a2caa30fce2 Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Sun, 5 May 2024 17:34:22 -0600 Subject: rtl/legacy_gfx: rename gfx -> legacy_gfx --- rtl/gfx/gfx_frag.sv | 79 ----------------------------------------------------- 1 file changed, 79 deletions(-) delete mode 100644 rtl/gfx/gfx_frag.sv (limited to 'rtl/gfx/gfx_frag.sv') diff --git a/rtl/gfx/gfx_frag.sv b/rtl/gfx/gfx_frag.sv deleted file mode 100644 index d61de72..0000000 --- a/rtl/gfx/gfx_frag.sv +++ /dev/null @@ -1,79 +0,0 @@ -`include "gfx/gfx_defs.sv" - -module gfx_frag -( - input logic clk, - rst_n, - - input frag_xy frag, - input fixed_tri bary, - ws, - input logic in_valid, - output logic in_ready, - - input logic out_ready, - output logic out_valid, - output frag_paint out -); - - logic stall; - frag_paint frag_out; - - gfx_pipeline_flow #(.STAGES(`GFX_FRAG_STAGES)) addr_flow - ( - .* - ); - - linear_coord linear; - - gfx_frag_addr addr - ( - .* - ); - - localparam ADDR_WAIT_STAGES = `GFX_FRAG_STAGES - `GFX_FRAG_ADDR_STAGES; - - gfx_pipes #(.WIDTH($bits(linear_coord)), .DEPTH(ADDR_WAIT_STAGES)) addr_pipes - ( - .in(linear), - .out(frag_out.addr), - .* - ); - - fixed b1, b2; - - gfx_frag_bary frag_bary - ( - .* - ); - - color_lerp_lanes argb0, argb1_argb0, argb2_argb0; - - assign argb0[3] = 32'd0 << 8; - assign argb0[2] = 32'd255 << 8; - assign argb0[1] = 32'd0 << 8; - assign argb0[0] = 32'd0 << 8; - - assign argb1_argb0[3] = 32'd0 << 8; - assign argb1_argb0[2] = (-32'sd255) << 8; - assign argb1_argb0[1] = 32'd255 << 8; - assign argb1_argb0[0] = 32'd0 << 8; - - assign argb2_argb0[3] = 32'd0 << 8; - assign argb2_argb0[2] = (-32'sd255) << 8; - assign argb2_argb0[1] = 32'd0 << 8; - assign argb2_argb0[0] = 32'd255 << 8; - - gfx_frag_shade shade - ( - .color(frag_out.color), - .* - ); - - gfx_skid_buf #(.WIDTH($bits(frag_out))) skid - ( - .in(frag_out), - .* - ); - -endmodule -- cgit v1.2.3