projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f304bb8
)
i965/gen6: Add support for gl_PointCoord.
author
Eric Anholt
<eric@anholt.net>
Sun, 5 Jun 2011 18:52:20 +0000
(11:52 -0700)
committer
Eric Anholt
<eric@anholt.net>
Thu, 9 Jun 2011 15:41:54 +0000
(08:41 -0700)
This is just like PointSprite overrides, but it's always on for that
attribute.
Fixes glsl-fs-pointcoord, gtf/point_sprites.
Acked-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/gen6_sf_state.c
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/gen6_sf_state.c
b/src/mesa/drivers/dri/i965/gen6_sf_state.c
index 75a8509c87a5f640899937ffd43bc49d6b417cc5..5bb731dc8fd1088f991a03bf4a02e9646d1607d1 100644
(file)
--- a/
src/mesa/drivers/dri/i965/gen6_sf_state.c
+++ b/
src/mesa/drivers/dri/i965/gen6_sf_state.c
@@
-251,6
+251,9
@@
upload_sf_state(struct brw_context *brw)
dw16 |= (1 << input_index);
}
+ if (attr == FRAG_ATTRIB_PNTC)
+ dw16 |= (1 << input_index);
+
/* The hardware can only do the overrides on 16 overrides at a
* time, and the other up to 16 have to be lined up so that the
* input index = the output index. We'll need to do some