mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 09:10:12 +01:00
radeonsi/gfx9: fix TXF_LZ with 1D textures
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
This commit is contained in:
parent
353b60cab5
commit
8a264dd829
1 changed files with 2 additions and 1 deletions
|
|
@ -1493,7 +1493,8 @@ static void tex_fetch_args(
|
|||
LLVMValueRef filler;
|
||||
|
||||
/* Use 0.5, so that we don't sample the border color. */
|
||||
if (opcode == TGSI_OPCODE_TXF)
|
||||
if (opcode == TGSI_OPCODE_TXF ||
|
||||
opcode == TGSI_OPCODE_TXF_LZ)
|
||||
filler = ctx->i32_0;
|
||||
else
|
||||
filler = LLVMConstReal(ctx->f32, 0.5);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue