https://bugs.freedesktop.org/show_bug.cgi?id=35425
Summary: Instanced drawing: not implemented Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW Severity: enhancement Priority: medium Component: Drivers/Gallium/r600 AssignedTo: dri-devel@lists.freedesktop.org ReportedBy: s3734770@mail.zih.tu-dresden.de
The follwing output is from the Unigine Heaven Demo:
0:171(53): error: `gl_InstanceID' undeclared 0:171(76): error: Operands to arithmetic operators must be numeric 0:171(76): error: Operands to arithmetic operators must be numeric 0:199(39): error: `gl_InstanceID' undeclared 0:199(42): error: Operands to arithmetic operators must be numeric 0:199(19): error: cannot construct `ivec3' from a non-numeric data type 0:199(58): error: Operands to arithmetic operators must be numeric GLShader::loadVertex(): error in "core/shaders/meshes/vertex_base.shader" file defines: UNKNOWN,QUALITY_LOW,QUALITY_MEDIUM,QUALITY_HIGH,MULTISAMPLE_0,USE_INSTANCING,USE_SRGB,USE_DEFERRED,USE_PARALLAX,USE_REFLECTION,OPENGL,USE_PSEUDO_INSTANCING,USE_PSEUDO_TRANSFORM,HAS_ARB_DRAW_INSTANCED,BASE_LIGHT_OMNI,OMNI,SHADOW,PHONG_RIM
(This also occurs on software rendering)
I know that instancing is not implemented in mesa yet. Can you please start designing the interface for mesa/gallium's drivers to enable starting to write the drivers for it?
https://bugs.freedesktop.org/show_bug.cgi?id=35425
--- Comment #1 from s3734770@mail.zih.tu-dresden.de 2011-04-07 01:12:01 PDT --- The PipeCap for instanced drawing is available, the drivers implement them, TGSI has the construct TGSI_SEMANTIC_INSTANCEID.
The only component that does not support instanced drawing is the GLSL compiler.
So can please any of the GLSL guys implement the gl_InstanceID uniform?
https://bugs.freedesktop.org/show_bug.cgi?id=35425
--- Comment #2 from s3734770@mail.zih.tu-dresden.de 2011-04-07 01:56:16 PDT --- Created an attachment (id=45367) View: https://bugs.freedesktop.org/attachment.cgi?id=45367 Review: https://bugs.freedesktop.org/review?bug=35425&attachment=45367
Probable patch
This patch works for me, but i dont know if it fits the coding style, so take the best bytes of it to fix the problem
https://bugs.freedesktop.org/show_bug.cgi?id=35425
Alex Deucher agd5f@yahoo.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Component|Drivers/Gallium/r600 |Mesa core AssignedTo|dri-devel@lists.freedesktop |mesa-dev@lists.freedesktop. |.org |org
dri-devel@lists.freedesktop.org