[Mesa-dev] [PATCH 13/13] i965: add ARB_texture_rgb10_a2ui support
Brian Paul
brianp at vmware.com
Tue Jun 26 14:36:24 PDT 2012
On 06/25/2012 06:34 PM, Jordan Justen wrote:
> Signed-off-by: Jordan Justen<jordan.l.justen at intel.com>
> ---
> src/mesa/drivers/dri/i965/brw_wm_surface_state.c | 1 +
> src/mesa/drivers/dri/intel/intel_extensions.c | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> index d09fe6d..873096e 100644
> --- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> +++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
> @@ -325,6 +325,7 @@ brw_format_for_mesa_format(gl_format mesa_format)
> [MESA_FORMAT_RG1616] = BRW_SURFACEFORMAT_R16G16_UNORM,
> [MESA_FORMAT_RG1616_REV] = 0,
> [MESA_FORMAT_ARGB2101010] = BRW_SURFACEFORMAT_B10G10R10A2_UNORM,
> + [MESA_FORMAT_ABGR2101010_UINT] = BRW_SURFACEFORMAT_R10G10B10A2_UINT,
> [MESA_FORMAT_Z24_S8] = 0,
> [MESA_FORMAT_S8_Z24] = 0,
> [MESA_FORMAT_Z16] = 0,
> diff --git a/src/mesa/drivers/dri/intel/intel_extensions.c b/src/mesa/drivers/dri/intel/intel_extensions.c
> index 29da36c..9ae0497 100755
> --- a/src/mesa/drivers/dri/intel/intel_extensions.c
> +++ b/src/mesa/drivers/dri/intel/intel_extensions.c
> @@ -91,6 +91,7 @@ intelInitExtensions(struct gl_context *ctx)
> ctx->Extensions.OES_EGL_image = true;
> #endif
> ctx->Extensions.OES_draw_texture = true;
> + ctx->Extensions.ARB_texture_rgb10_a2ui = true;
>
> if (intel->gen>= 6)
> ctx->Const.GLSLVersion = 130;
Looks OK to me, but one of your coworkers might want to review too.
Reviewed-by: Brian Paul <brianp at vmware.com>
More information about the mesa-dev
mailing list