tex_unit code refactoring

This commit is contained in:
Blaise Tine
2021-03-22 10:41:50 -04:00
parent 82a9aee417
commit 97041e8e82
5 changed files with 8 additions and 155 deletions

View File

@@ -12,6 +12,7 @@
`define CLAMP(x,lo,hi) ((x < lo) ? lo : ((x > hi) ? hi : x))
`define BLEND_FRAC_64 8
`define LERP_64(x1,x2,frac) ((x2 + (((x1 - x2) * frac) >> `BLEND_FRAC_64)) & 64'h00ff00ff00ff00ff)
`define TEX_ADDR_BITS 32
@@ -31,13 +32,8 @@
`define TEX_COLOR_BITS 8
`define R5G6B5 `TEX_FORMAT_BITS'h1
`define R8G8B8 `TEX_FORMAT_BITS'h2
`define R8G8B8A8 `TEX_FORMAT_BITS'h3
`define RBEGIN 24
`define GBEGIN 16
`define BBEGIN 8
`define ABEGIN 0
`define TEX_FORMAT_R5G6B5 `TEX_FORMAT_BITS'(1)
`define TEX_FORMAT_R8G8B8 `TEX_FORMAT_BITS'(2)
`define TEX_FORMAT_R8G8B8A8 `TEX_FORMAT_BITS'(3)
`endif