From: Marek Olšák Date: Thu, 23 Feb 2017 21:15:17 +0000 (+0100) Subject: radeonsi: set unorm=1 for TGSI_TEXTURE_SHADOWRECT as well X-Git-Tag: upstream/17.1.0~1753 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f8c823b103131c0100139fdab3b3ccc516e702c0;p=platform%2Fupstream%2Fmesa.git 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 --- diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index f84eefc..5fe3eef 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))