projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5349437
)
radeonsi: simplify obtaining a shader property in si_emit_clip_regs
author
Marek Olšák
<marek.olsak@amd.com>
Sun, 22 Feb 2015 14:36:20 +0000
(15:36 +0100)
committer
Marek Olšák
<marek.olsak@amd.com>
Tue, 24 Feb 2015 20:21:04 +0000
(21:21 +0100)
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
src/gallium/drivers/radeonsi/si_state.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/radeonsi/si_state.c
b/src/gallium/drivers/radeonsi/si_state.c
index 4b4f8fbdd21bf6208650a09254c1e1ec2e03a2c4..5de31c03192c51996db702508af60ae4bbf6d056 100644
(file)
--- 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;