From f8c823b103131c0100139fdab3b3ccc516e702c0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Thu, 23 Feb 2017 22:15:17 +0100 Subject: [PATCH] radeonsi: set unorm=1 for TGSI_TEXTURE_SHADOWRECT as well It was harmless, because we also set unorm in the sampler state. Reviewed-by: Dave Airlie --- src/gallium/drivers/radeonsi/si_shader.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index f84eefc3ddc..5fe3eef38fc 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/src/gallium/drivers/radeonsi/si_shader.c @@ -4122,7 +4122,8 @@ static void set_tex_fetch_args(struct si_shader_context *ctx, { struct gallivm_state *gallivm = &ctx->gallivm; unsigned num_args; - unsigned is_rect = target == TGSI_TEXTURE_RECT; + unsigned is_rect = target == TGSI_TEXTURE_RECT || + target == TGSI_TEXTURE_SHADOWRECT; /* Pad to power of two vector */ while (count < util_next_power_of_two(count)) -- 2.30.2