summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300
diff options
context:
space:
mode:
authorMaciej Cencora <[email protected]>2009-09-27 22:28:46 +0200
committerMaciej Cencora <[email protected]>2009-09-27 22:44:28 +0200
commit98f6bea1685957fe9261e50f8a56f7dcb34f9b38 (patch)
treec8e57e451ca9df15ee7af39873b64e990a457226 /src/gallium/drivers/r300
parentbedc6b7bdff40156b66cb2473c47512e5c95bdab (diff)
r300g: don't force vertex position for HW TCL path
It could be generated by vertex shader.
Diffstat (limited to 'src/gallium/drivers/r300')
-rw-r--r--src/gallium/drivers/r300/r300_state_derived.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r300/r300_state_derived.c b/src/gallium/drivers/r300/r300_state_derived.c
index 083861a0712..ed5dc1b9ff0 100644
--- a/src/gallium/drivers/r300/r300_state_derived.c
+++ b/src/gallium/drivers/r300/r300_state_derived.c
@@ -128,7 +128,9 @@ static void r300_vs_tab_routes(struct r300_context* r300,
vinfo->hwfmt[0] = 0x5555; /* XXX this is classic Mesa bonghits */
- if (!pos) {
+ /* We need to add vertex position attribute only for SW TCL case,
+ * for HW TCL case it could be generated by vertex shader */
+ if (!pos && !r300screen->caps->has_tcl) {
debug_printf("r300: Forcing vertex position attribute emit...\n");
/* Make room for the position attribute
* at the beginning of the tab. */