Mesa (master): draw/llvm: another quick hack for drawing with no position output
Roland Scheidegger
sroland at kemper.freedesktop.org
Mon Mar 11 16:07:59 UTC 2013
Module: Mesa
Branch: master
Commit: 9060c835fd3db29c657b62c5ec403e994c0ebce8
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=9060c835fd3db29c657b62c5ec403e994c0ebce8
Author: Roland Scheidegger <sroland at vmware.com>
Date: Mon Mar 11 17:03:55 2013 +0100
draw/llvm: another quick hack for drawing with no position output
Also need to skip things if we have no cv value but pos value
(happens with geometry shaders enabled).
Needs a round of cleanup, though.
---
src/gallium/auxiliary/draw/draw_llvm.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c
index f1c1f55..20c9b79 100644
--- a/src/gallium/auxiliary/draw/draw_llvm.c
+++ b/src/gallium/auxiliary/draw/draw_llvm.c
@@ -1354,7 +1354,7 @@ draw_llvm_generate(struct draw_llvm *llvm, struct draw_llvm_variant *variant,
sampler,
variant->key.clamp_vertex_color);
- if (pos != -1) {
+ if (pos != -1 && cv != -1) {
/* store original positions in clip before further manipulation */
store_clip(gallivm, vs_type, io, outputs, 0, cv);
store_clip(gallivm, vs_type, io, outputs, 1, pos);
More information about the mesa-commit
mailing list