From bf059ebd33b4654334c1d96b6022fd6eef278782 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Wed, 5 Oct 2011 13:35:33 -0600 Subject: [PATCH] swrast: update texfetch_funcs table for new int/uint formats This only adds dummy entries to the table to fix failed assertions. Fixes https://bugs.freedesktop.org/show_bug.cgi?id=41491 --- src/mesa/swrast/s_texfetch.c | 325 +++++++++++++++++++++++++++++++++++ 1 file changed, 325 insertions(+) diff --git a/src/mesa/swrast/s_texfetch.c b/src/mesa/swrast/s_texfetch.c index 73b5af319ff..7573abda6dd 100644 --- a/src/mesa/swrast/s_texfetch.c +++ b/src/mesa/swrast/s_texfetch.c @@ -656,6 +656,226 @@ texfetch_funcs[MESA_FORMAT_COUNT] = store_texel_rg_f16 }, + { + MESA_FORMAT_ALPHA_UINT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_ALPHA_UINT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_ALPHA_UINT32, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_ALPHA_INT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_ALPHA_INT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_ALPHA_INT32, + NULL, + NULL, + NULL, + NULL + }, + + + { + MESA_FORMAT_INTENSITY_UINT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_INTENSITY_UINT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_INTENSITY_UINT32, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_INTENSITY_INT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_INTENSITY_INT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_INTENSITY_INT32, + NULL, + NULL, + NULL, + NULL + }, + + + { + MESA_FORMAT_LUMINANCE_UINT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_UINT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_UINT32, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_INT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_INT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_INT32, + NULL, + NULL, + NULL, + NULL + }, + + + { + MESA_FORMAT_LUMINANCE_ALPHA_UINT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_ALPHA_UINT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_ALPHA_UINT32, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_ALPHA_INT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_ALPHA_INT16, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_LUMINANCE_ALPHA_INT32, + NULL, + NULL, + NULL, + NULL + }, + + + { + MESA_FORMAT_R_INT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_RG_INT8, + NULL, + NULL, + NULL, + NULL + }, + + { + MESA_FORMAT_RGB_INT8, + NULL, + NULL, + NULL, + NULL + }, + /* non-normalized, signed int */ { MESA_FORMAT_RGBA_INT8, @@ -664,6 +884,27 @@ texfetch_funcs[MESA_FORMAT_COUNT] = fetch_texel_3d_rgba_int8, store_texel_rgba_int8 }, + { + MESA_FORMAT_R_INT16, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RG_INT16, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RGB_INT16, + NULL, + NULL, + NULL, + NULL + }, { MESA_FORMAT_RGBA_INT16, fetch_texel_1d_rgba_int16, @@ -671,6 +912,27 @@ texfetch_funcs[MESA_FORMAT_COUNT] = fetch_texel_3d_rgba_int16, store_texel_rgba_int16 }, + { + MESA_FORMAT_R_INT32, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RG_INT32, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RGB_INT32, + NULL, + NULL, + NULL, + NULL + }, { MESA_FORMAT_RGBA_INT32, fetch_texel_1d_rgba_int32, @@ -680,6 +942,27 @@ texfetch_funcs[MESA_FORMAT_COUNT] = }, /* non-normalized, unsigned int */ + { + MESA_FORMAT_R_UINT8, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RG_UINT8, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RGB_UINT8, + NULL, + NULL, + NULL, + NULL + }, { MESA_FORMAT_RGBA_UINT8, fetch_texel_1d_rgba_uint8, @@ -687,6 +970,27 @@ texfetch_funcs[MESA_FORMAT_COUNT] = fetch_texel_3d_rgba_uint8, store_texel_rgba_uint8 }, + { + MESA_FORMAT_R_UINT16, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RG_UINT16, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RGB_UINT16, + NULL, + NULL, + NULL, + NULL + }, { MESA_FORMAT_RGBA_UINT16, fetch_texel_1d_rgba_uint16, @@ -694,6 +998,27 @@ texfetch_funcs[MESA_FORMAT_COUNT] = fetch_texel_3d_rgba_uint16, store_texel_rgba_uint16 }, + { + MESA_FORMAT_R_UINT32, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RG_UINT32, + NULL, + NULL, + NULL, + NULL + }, + { + MESA_FORMAT_RGB_UINT32, + NULL, + NULL, + NULL, + NULL + }, { MESA_FORMAT_RGBA_UINT32, fetch_texel_1d_rgba_uint32, -- 2.30.2