diff options
author | Eric Anholt <[email protected]> | 2005-10-24 09:59:43 +0000 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2005-10-24 09:59:43 +0000 |
commit | 60b639b9a6df6e53997d3c8acdb768229b654a5f (patch) | |
tree | 71ef3ad74c762a2724bc35dfff9372e6417d32a1 /src/mesa/drivers/dri/sis/sis_context.c | |
parent | 971bdc193cb4ce07f4ca20bac13276095b5f0b83 (diff) |
- Add a few more hardware internal formats that are supported. Some remaining
ones require custom texstore, so they aren't done yet.
- Add YCBCR support commented out, since the yuvsquare test didn't work with
just the bits I've added.
- Add the no-compression GL_ARB_texture_compression support.
- Add the driconf texture depth option and try to respect it.
Diffstat (limited to 'src/mesa/drivers/dri/sis/sis_context.c')
-rw-r--r-- | src/mesa/drivers/dri/sis/sis_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/sis/sis_context.c b/src/mesa/drivers/dri/sis/sis_context.c index fab38474965..8e2aa88ca39 100644 --- a/src/mesa/drivers/dri/sis/sis_context.c +++ b/src/mesa/drivers/dri/sis/sis_context.c @@ -59,6 +59,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. #include "tnl/t_pipeline.h" #define need_GL_ARB_multisample +#define need_GL_ARB_texture_compression #include "extension_helper.h" #ifndef SIS_DEBUG @@ -74,9 +75,11 @@ struct dri_extension card_extensions[] = { "GL_ARB_multisample", GL_ARB_multisample_functions }, { "GL_ARB_multitexture", NULL }, { "GL_ARB_texture_border_clamp", NULL }, + { "GL_ARB_texture_compression", GL_ARB_texture_compression_functions }, { "GL_ARB_texture_mirrored_repeat", NULL }, { "GL_EXT_texture_lod_bias", NULL }, { "GL_EXT_stencil_wrap", NULL }, + /*{ "GL_MESA_ycbcr_texture", NULL },*/ /* not working yet */ { "GL_NV_blend_square", NULL }, { NULL, NULL } }; @@ -290,6 +293,7 @@ sisCreateContext( const __GLcontextModes *glVisual, fprintf(stderr, "disabling 3D acceleration\n"); FALLBACK(smesa, SIS_FALLBACK_DISABLE, 1); } + smesa->texture_depth = driQueryOptioni(&smesa->optionCache, "texture_depth"); return GL_TRUE; } |