radeonsi: fix incorrect parentheses around VS-PS varying elimination
authorMarek Olšák <marek.olsak@amd.com>
Wed, 23 May 2018 04:16:25 +0000 (00:16 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Fri, 25 May 2018 20:46:00 +0000 (16:46 -0400)
I don't know if it caused issues.

Cc: 18.0 18.1 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 1b618502e857760cb746b256ce313845529b574d..6d558c97b5a2e0f52ebac9d02d8dc5c6fff14964 100644 (file)
@@ -1227,8 +1227,8 @@ static void si_shader_selector_key_hw_vs(struct si_context *sctx,
        uint64_t inputs_read = 0;
 
        /* ignore POSITION, PSIZE */
-       outputs_written &= ~((1ull << si_shader_io_get_unique_index(TGSI_SEMANTIC_POSITION, 0) |
-                            (1ull << si_shader_io_get_unique_index(TGSI_SEMANTIC_PSIZE, 0))));
+       outputs_written &= ~((1ull << si_shader_io_get_unique_index(TGSI_SEMANTIC_POSITION, 0)) |
+                            (1ull << si_shader_io_get_unique_index(TGSI_SEMANTIC_PSIZE, 0)));
 
        if (!ps_disabled) {
                inputs_read = ps->inputs_read;