aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuca Barbieri <[email protected]>2010-01-20 04:36:58 +0100
committerLuca Barbieri <[email protected]>2010-04-12 20:23:02 +0200
commitf9397f34b67b49ffb00b8b98e6a11e1cdb021016 (patch)
treef4219a00f3fb9636790d5c612e0b32d47b40d3b9
parent44ef1577be4c90ffe03f9e3ecb243d3fec6b8d3e (diff)
nvfx: expose PIPE_FORMAT_B8G8R8X8_UNORM support
This is implemented in nvfx_state_fb and fragtex but was missing in nvfx_screen. This allows to avoid glCopyTexSubImage CPU fallbacks and makes Doom 3 much faster as a result.
-rw-r--r--src/gallium/drivers/nvfx/nvfx_screen.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c
index e142e27115e..0950dc87b41 100644
--- a/src/gallium/drivers/nvfx/nvfx_screen.c
+++ b/src/gallium/drivers/nvfx/nvfx_screen.c
@@ -126,6 +126,7 @@ nvfx_screen_surface_format_supported(struct pipe_screen *pscreen,
if (tex_usage & PIPE_BIND_RENDER_TARGET) {
switch (format) {
case PIPE_FORMAT_B8G8R8A8_UNORM:
+ case PIPE_FORMAT_B8G8R8X8_UNORM:
case PIPE_FORMAT_B5G6R5_UNORM:
return TRUE;
default:
@@ -148,6 +149,7 @@ nvfx_screen_surface_format_supported(struct pipe_screen *pscreen,
} else {
switch (format) {
case PIPE_FORMAT_B8G8R8A8_UNORM:
+ case PIPE_FORMAT_B8G8R8X8_UNORM:
case PIPE_FORMAT_B5G5R5A1_UNORM:
case PIPE_FORMAT_B4G4R4A4_UNORM:
case PIPE_FORMAT_B5G6R5_UNORM: