[Mesa-dev] [PATCH 1/2] i965/vs: Allow state upload to proceed when inputs are not set
Jordan Justen
jordan.l.justen at intel.com
Sat Nov 22 12:02:30 PST 2014
For drawing the OpenGL API should validate this before we try to upload the
state.
For compute, these might not be set.
Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
src/mesa/drivers/dri/i965/brw_vs.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_vs.c b/src/mesa/drivers/dri/i965/brw_vs.c
index edaa82c..ca3f105 100644
--- a/src/mesa/drivers/dri/i965/brw_vs.c
+++ b/src/mesa/drivers/dri/i965/brw_vs.c
@@ -457,6 +457,9 @@ static void brw_upload_vs_prog(struct brw_context *brw)
uint8_t wa_flags = 0;
+ if (!brw->vb.inputs[i].glarray)
+ continue;
+
switch (brw->vb.inputs[i].glarray->Type) {
case GL_FIXED:
--
2.1.1
More information about the mesa-dev
mailing list