From: Marek Olšák Date: Sun, 22 Feb 2015 14:36:20 +0000 (+0100) Subject: radeonsi: simplify obtaining a shader property in si_emit_clip_regs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4eb0ccf9e7902a0b1c9b691fa37852f31cb2befc;p=mesa.git radeonsi: simplify obtaining a shader property in si_emit_clip_regs Reviewed-by: Michel Dänzer --- diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 4b4f8fbdd21..5de31c03192 100644 --- a/src/gallium/drivers/radeonsi/si_state.c +++ b/src/gallium/drivers/radeonsi/si_state.c @@ -465,9 +465,8 @@ static void si_emit_clip_regs(struct si_context *sctx, struct r600_atom *atom) { struct radeon_winsys_cs *cs = sctx->b.rings.gfx.cs; struct tgsi_shader_info *info = si_get_vs_info(sctx); - struct si_shader *vs = si_get_vs_state(sctx); unsigned window_space = - vs->selector->info.properties[TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION]; + info->properties[TGSI_PROPERTY_VS_WINDOW_SPACE_POSITION]; unsigned clipdist_mask = info->writes_clipvertex ? SIX_BITS : info->clipdist_writemask;