Mesa (master): radeonsi/gfx9: fix TXF_LZ with 1D textures

Marek Olšák mareko at kemper.freedesktop.org
Mon Jun 19 18:18:45 UTC 2017


Module: Mesa
Branch: master
Commit: 8a264dd8299b50b8b705b717a172b728da8bb1d9
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=8a264dd8299b50b8b705b717a172b728da8bb1d9

Author: Marek Olšák <marek.olsak at amd.com>
Date:   Fri Jun 16 22:33:22 2017 +0200

radeonsi/gfx9: fix TXF_LZ with 1D textures

Reviewed-by: Nicolai Hähnle <nicolai.haehnle at amd.com>

---

 src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
index e72052c445..3b50ca5341 100644
--- a/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
+++ b/src/gallium/drivers/radeonsi/si_shader_tgsi_mem.c
@@ -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);




More information about the mesa-commit mailing list