[Mesa-dev] [PATCH 5/6] i965: expose ARB_texture_cube_map_array

Ian Romanick idr at freedesktop.org
Mon Nov 26 11:08:40 PST 2012


On 11/22/2012 04:35 AM, Chris Forbes wrote:
> Signed-off-by: Chris Forbes <chrisf at ijw.co.nz>
> ---
>   docs/GL3.txt                                  | 2 +-
>   src/mesa/drivers/dri/intel/intel_extensions.c | 3 +++
>   2 files changed, 4 insertions(+), 1 deletion(-)
>
> diff --git a/docs/GL3.txt b/docs/GL3.txt
> index aebba0b..5d6c451 100644
> --- a/docs/GL3.txt
> +++ b/docs/GL3.txt
> @@ -96,7 +96,7 @@ GL_ARB_sample_shading                                not started
>   GL_ARB_shader_subroutine                             not started
>   GL_ARB_tessellation_shader                           not started
>   GL_ARB_texture_buffer_object_rgb32                   not started
> -GL_ARB_texture_cube_map_array                        DONE (softpipe)
> +GL_ARB_texture_cube_map_array                        DONE (i965, softpipe)
>   GL_ARB_texture_gather                                not started
>   GL_ARB_transform_feedback2                           DONE
>   GL_ARB_transform_feedback3                           DONE
> diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
> index 34701ba..33081a4 100755
> --- a/src/mesa/drivers/dri/intel/intel_extensions.c
> +++ b/src/mesa/drivers/dri/intel/intel_extensions.c
> @@ -116,6 +116,9 @@ intelInitExtensions(struct gl_context *ctx)
>         }
>      }
>
> +   if (intel->gen >= 6)
> +      ctx->Extensions.ARB_texture_cube_map_array = true;
> +

Put this in one of the existing '(intel->gen >= 6)' blocks.  We should 
have a follow-up patch that merges a bunch of the duplicated 
'(intel->gen >= X)' blocks.

>      if (intel->gen >= 5)
>         ctx->Extensions.EXT_timer_query = true;
>



More information about the mesa-dev mailing list