radeonsi: set unorm=1 for TGSI_TEXTURE_SHADOWRECT as well
authorMarek Olšák <marek.olsak@amd.com>
Thu, 23 Feb 2017 21:15:17 +0000 (22:15 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 3 Mar 2017 14:29:30 +0000 (15:29 +0100)
It was harmless, because we also set unorm in the sampler state.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/radeonsi/si_shader.c

index f84eefc3ddc4329f30764a9f0d19b7fe81a3f0de..5fe3eef38fcd75af7b57f71fd15fcee8fcfe3415 100644 (file)
@@ -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))