From: Marek Olšák Date: Sat, 4 Oct 2014 18:59:48 +0000 (+0200) Subject: radeonsi: simplify dereferences in si_update_spi_map X-Git-Tag: upstream/17.1.0~22914 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6f04cf7facb68d98aa156bd6b3e7a92874b14b49;p=platform%2Fupstream%2Fmesa.git radeonsi: simplify dereferences in si_update_spi_map Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 27b4be6..0e7a180 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;