mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 11:38:05 +02:00
gallium: completely remove T{EX,XF}_LZ opcode
This isn't in use, let's cull it. Reviewed-by: Marek Olšák <maraeo@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/40993>
This commit is contained in:
parent
208ecb1827
commit
bf460a525d
6 changed files with 4 additions and 32 deletions
|
|
@ -804,29 +804,6 @@ used.
|
|||
& src0.y \times src1.y
|
||||
\end{aligned}
|
||||
|
||||
.. opcode:: TEX_LZ - Texture Lookup With LOD = 0
|
||||
|
||||
This is the same as TXL with LOD = 0. Like every texture opcode, it obeys
|
||||
pipe_sampler_view::u.tex.first_level and pipe_sampler_state::min_lod.
|
||||
There is no way to override those two in shaders.
|
||||
|
||||
.. math::
|
||||
|
||||
coord.x = src0.x
|
||||
|
||||
coord.y = src0.y
|
||||
|
||||
coord.z = src0.z
|
||||
|
||||
coord.w = none
|
||||
|
||||
lod = 0
|
||||
|
||||
unit = src1
|
||||
|
||||
dst = texture\_sample(unit, coord, lod)
|
||||
|
||||
|
||||
.. opcode:: TXL - Texture Lookup With explicit LOD
|
||||
|
||||
for cube map array textures, the explicit LOD value
|
||||
|
|
|
|||
|
|
@ -248,7 +248,6 @@ tgsi_opcode_infer_src_type(enum tgsi_opcode opcode, unsigned src_idx)
|
|||
switch (opcode) {
|
||||
case TGSI_OPCODE_UIF:
|
||||
case TGSI_OPCODE_TXF:
|
||||
case TGSI_OPCODE_TXF_LZ:
|
||||
case TGSI_OPCODE_U2F:
|
||||
case TGSI_OPCODE_U2D:
|
||||
case TGSI_OPCODE_UADD:
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ OPCODE(1, 2, COMP, MAX)
|
|||
OPCODE(1, 2, COMP, SLT)
|
||||
OPCODE(1, 2, COMP, SGE)
|
||||
OPCODE(1, 3, COMP, MAD)
|
||||
OPCODE(1, 2, OTHR, TEX_LZ, .is_tex = 1)
|
||||
OPCODE_GAP(17) /* removed */
|
||||
OPCODE(1, 3, COMP, LRP)
|
||||
OPCODE(1, 3, COMP, FMA)
|
||||
OPCODE(1, 1, REPL, SQRT)
|
||||
|
|
@ -23,7 +23,7 @@ OPCODE(1, 2, COMP, LDEXP)
|
|||
OPCODE(1, 1, COMP, F2U64)
|
||||
OPCODE(1, 1, COMP, F2I64)
|
||||
OPCODE(1, 1, COMP, FRC)
|
||||
OPCODE(1, 2, OTHR, TXF_LZ, .is_tex = 1)
|
||||
OPCODE_GAP(25) /* removed */
|
||||
OPCODE(1, 1, COMP, FLR)
|
||||
OPCODE(1, 1, COMP, ROUND)
|
||||
OPCODE(1, 1, REPL, EX2)
|
||||
|
|
|
|||
|
|
@ -57,12 +57,10 @@ OP12(SLT)
|
|||
OP12(SGE)
|
||||
OP13(MAD)
|
||||
OP13(DMAD)
|
||||
OP12_TEX(TEX_LZ)
|
||||
OP13(LRP)
|
||||
OP11(SQRT)
|
||||
OP11(DSQRT)
|
||||
OP11(FRC)
|
||||
OP12_TEX(TXF_LZ)
|
||||
OP11(FLR)
|
||||
OP11(ROUND)
|
||||
OP11(EX2)
|
||||
|
|
|
|||
|
|
@ -196,8 +196,6 @@ tgsi_util_get_src_usage_mask(enum tgsi_opcode opcode,
|
|||
break;
|
||||
|
||||
case TGSI_OPCODE_TEX:
|
||||
case TGSI_OPCODE_TEX_LZ:
|
||||
case TGSI_OPCODE_TXF_LZ:
|
||||
case TGSI_OPCODE_TXF:
|
||||
case TGSI_OPCODE_TXB:
|
||||
case TGSI_OPCODE_TXL:
|
||||
|
|
|
|||
|
|
@ -357,7 +357,7 @@ enum tgsi_opcode {
|
|||
TGSI_OPCODE_SLT = 14,
|
||||
TGSI_OPCODE_SGE = 15,
|
||||
TGSI_OPCODE_MAD = 16,
|
||||
TGSI_OPCODE_TEX_LZ = 17,
|
||||
/* gap */
|
||||
TGSI_OPCODE_LRP = 18,
|
||||
TGSI_OPCODE_FMA = 19,
|
||||
TGSI_OPCODE_SQRT = 20,
|
||||
|
|
@ -365,7 +365,7 @@ enum tgsi_opcode {
|
|||
TGSI_OPCODE_F2U64 = 22,
|
||||
TGSI_OPCODE_F2I64 = 23,
|
||||
TGSI_OPCODE_FRC = 24,
|
||||
TGSI_OPCODE_TXF_LZ = 25,
|
||||
/* gap */
|
||||
TGSI_OPCODE_FLR = 26,
|
||||
TGSI_OPCODE_ROUND = 27,
|
||||
TGSI_OPCODE_EX2 = 28,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue