[Mesa-dev] [PATCH 2/2] i965/draw state: Allow state upload to proceed when inputs are not set
Jordan Justen
jordan.l.justen at intel.com
Sat Nov 22 12:02:31 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_draw_upload.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_draw_upload.c b/src/mesa/drivers/dri/i965/brw_draw_upload.c
index 5a12439..28136e2 100644
--- a/src/mesa/drivers/dri/i965/brw_draw_upload.c
+++ b/src/mesa/drivers/dri/i965/brw_draw_upload.c
@@ -433,6 +433,10 @@ brw_prepare_vertices(struct brw_context *brw)
struct brw_vertex_element *input = &brw->vb.inputs[i];
vs_inputs &= ~BITFIELD64_BIT(i);
+
+ if (!input->glarray)
+ continue;
+
brw->vb.enabled[brw->vb.nr_enabled++] = input;
}
--
2.1.1
More information about the mesa-dev
mailing list