From: Stéphane Marchesin Date: Tue, 28 Jun 2011 02:24:42 +0000 (-0700) Subject: i915g: Enable GL_ARB_instanced_arrays. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=a2537bbc95bfeaaf50e5f0895d1f5741c3d7e349;p=mesa.git i915g: Enable GL_ARB_instanced_arrays. --- diff --git a/src/gallium/drivers/i915/TODO b/src/gallium/drivers/i915/TODO index 992168e9a8d..509f7554111 100644 --- a/src/gallium/drivers/i915/TODO +++ b/src/gallium/drivers/i915/TODO @@ -33,7 +33,6 @@ Random list of problems with i915g: - Leverage draw to enable more caps: * PIPE_CAP_TGSI_INSTANCEID - * PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR * PIPE_CAP_MAX_VERTEX_TEXTURE_UNITS - Finish front/back face. We need to add face support to lp_build_system_values_array and use it in draw_llvm.c. diff --git a/src/gallium/drivers/i915/i915_screen.c b/src/gallium/drivers/i915/i915_screen.c index 543d75faebe..5e62b8250e0 100644 --- a/src/gallium/drivers/i915/i915_screen.c +++ b/src/gallium/drivers/i915/i915_screen.c @@ -114,6 +114,7 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap) case PIPE_CAP_TEXTURE_MIRROR_REPEAT: case PIPE_CAP_TEXTURE_SHADOW_MAP: case PIPE_CAP_TWO_SIDED_STENCIL: + case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR: return 1; /* Features that should be supported (boolean caps). */ @@ -128,7 +129,6 @@ i915_get_param(struct pipe_screen *screen, enum pipe_cap cap) case PIPE_CAP_INDEP_BLEND_ENABLE: case PIPE_CAP_INDEP_BLEND_FUNC: case PIPE_CAP_TGSI_INSTANCEID: - case PIPE_CAP_VERTEX_ELEMENT_INSTANCE_DIVISOR: case PIPE_CAP_SHADER_STENCIL_EXPORT: case PIPE_CAP_TEXTURE_MIRROR_CLAMP: case PIPE_CAP_TEXTURE_SWIZZLE: