Skip to contentSkip to conversation

New: Instanced drawing: not implemented

Bug 35425 [email protected] 1 participant 4 messages Mar 18, 2011 – Apr 7, 2011

lore
Share & tools
lore
#0 lore raw

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: [email protected]
ReportedBy: [email protected]

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?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#1 lore raw

[Bug 35425] Instanced drawing: not implemented

https://bugs.freedesktop.org/show_bug.cgi?id=35425

--- Comment #1 from [email protected] 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?

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#2 lore raw

[Bug 35425] Instanced drawing: not implemented

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=35425

--- Comment #2 from [email protected] 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

Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
#3 lore raw

[Bug 35425] Instanced drawing: not implemented

In reply to [email protected]

https://bugs.freedesktop.org/show_bug.cgi?id=35425

Alex Deucher <[email protected]> changed:

What |Removed |Added
----------------------------------------------------------------------------

          Component|Drivers/Gallium/r600        |Mesa core
         AssignedTo|[email protected] |[email protected].
                   |.org                        |org
Signature · 3 lines
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.