summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nv40
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2008-04-29 08:56:41 +1000
committerBen Skeggs <[email protected]>2008-04-29 08:56:41 +1000
commit480ab1b7893290505efba925ea95d3b173aa97d4 (patch)
tree7e22664b19048709a70350e49882339d70bf00ff /src/gallium/drivers/nv40
parent58b1bcaa094ed07a54bd7e4cdbddbcdcf1f629a7 (diff)
nv40: enable DXTn formats
GL state tracker capable enough for progs/tests/texcompress2 at least.
Diffstat (limited to 'src/gallium/drivers/nv40')
-rw-r--r--src/gallium/drivers/nv40/nv40_screen.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/nv40/nv40_screen.c b/src/gallium/drivers/nv40/nv40_screen.c
index a408d7262f3..c64c3b1c39d 100644
--- a/src/gallium/drivers/nv40/nv40_screen.c
+++ b/src/gallium/drivers/nv40/nv40_screen.c
@@ -39,7 +39,7 @@ nv40_screen_get_param(struct pipe_screen *pscreen, int param)
case PIPE_CAP_GLSL:
return 0;
case PIPE_CAP_S3TC:
- return 0;
+ return 1;
case PIPE_CAP_ANISOTROPIC_FILTER:
return 1;
case PIPE_CAP_POINT_SPRITE:
@@ -118,12 +118,10 @@ nv40_screen_surface_format_supported(struct pipe_screen *pscreen,
case PIPE_FORMAT_U_A8_L8:
case PIPE_FORMAT_Z16_UNORM:
case PIPE_FORMAT_Z24S8_UNORM:
-#if 0 /* state tracker not up to the task just yet. */
case PIPE_FORMAT_DXT1_RGB:
case PIPE_FORMAT_DXT1_RGBA:
case PIPE_FORMAT_DXT3_RGBA:
case PIPE_FORMAT_DXT5_RGBA:
-#endif
return TRUE;
default:
break;