radeonsi: simplify dereferences in si_update_spi_map
authorMarek Olšák <marek.olsak@amd.com>
Sat, 4 Oct 2014 18:59:48 +0000 (20:59 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Sun, 12 Oct 2014 21:53:54 +0000 (23:53 +0200)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state_draw.c

index 27b4be6fe6640629450a3f5650fbcb8bc7644f34..0e7a1808619326c9d16b1b2de268c61d47e874b5 100644 (file)
@@ -509,7 +509,7 @@ bcolor:
 
                if (ps->input[i].interpolate == TGSI_INTERPOLATE_CONSTANT ||
                    (ps->input[i].interpolate == TGSI_INTERPOLATE_COLOR &&
-                    sctx->ps_shader->current->key.ps.flatshade)) {
+                    ps->key.ps.flatshade)) {
                        tmp |= S_028644_FLAT_SHADE(1);
                }
 
@@ -536,7 +536,7 @@ bcolor:
                               tmp);
 
                if (name == TGSI_SEMANTIC_COLOR &&
-                   sctx->ps_shader->current->key.ps.color_two_side) {
+                   ps->key.ps.color_two_side) {
                        name = TGSI_SEMANTIC_BCOLOR;
                        param_offset++;
                        goto bcolor;