From cddfc2cefa93b884c40329dcb193fe4fb22143ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg=20Kristensen?= Date: Thu, 10 Dec 2015 12:27:38 -0800 Subject: i965: Add support for gl_DrawIDARB and enable extension We have to break open a new vec4 for gl_DrawIDARB. We've used up all space in the vec4 we use for SGVS and gl_DrawIDARB has to come from its own separate vertex buffer anyway. This is because we point the vb for base vertex and base instance into the draw parameter BO for indirect draw calls, but the draw id is generated by mesa in a different buffer. Reviewed-by: Anuj Phogat --- src/mesa/drivers/dri/i965/brw_compiler.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mesa/drivers/dri/i965/brw_compiler.h') diff --git a/src/mesa/drivers/dri/i965/brw_compiler.h b/src/mesa/drivers/dri/i965/brw_compiler.h index 9b3bb9f..224ddb1 100644 --- a/src/mesa/drivers/dri/i965/brw_compiler.h +++ b/src/mesa/drivers/dri/i965/brw_compiler.h @@ -597,6 +597,7 @@ struct brw_vs_prog_data { bool uses_instanceid; bool uses_basevertex; bool uses_baseinstance; + bool uses_drawid; }; struct brw_tcs_prog_data -- cgit v1.1