summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2014-10-04 20:59:48 +0200
committerMarek Olšák <[email protected]>2014-10-12 23:53:54 +0200
commit6f04cf7facb68d98aa156bd6b3e7a92874b14b49 (patch)
tree9a1bcc95bf38a59b61d8a741bb6de96b800d00cc /src
parent639f6b41d23483a48de67b065cbf1552595f3863 (diff)
radeonsi: simplify dereferences in si_update_spi_map
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeonsi/si_state_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c
index 27b4be6fe66..0e7a1808619 100644
--- a/src/gallium/drivers/radeonsi/si_state_draw.c
+++ b/src/gallium/drivers/radeonsi/si_state_draw.c
@@ -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;