Mesa (master): r600g: Add R8G8B8A8_UNORM to evergreen colorswap table

Benjamin Franzke bnf at kemper.freedesktop.org
Thu Jun 23 19:07:59 UTC 2011


Module: Mesa
Branch: master
Commit: fa5478c5fe88e9c07d30203984b712925de84d2e
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=fa5478c5fe88e9c07d30203984b712925de84d2e

Author: Benjamin Franzke <benjaminfranzke at googlemail.com>
Date:   Thu Jun 23 14:31:15 2011 +0200

r600g: Add R8G8B8A8_UNORM to evergreen colorswap table

Fixes broken glTexImage2D with format=GL_RGBA since
1a339b6c71ebab6e1a64f05b2e133022d3bbcd15

The origin for this behaviour is that r600_is_format_supported
checks only against r600_state_inline.h tables not evergreens.

---

 src/gallium/drivers/r600/eg_state_inlines.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gallium/drivers/r600/eg_state_inlines.h b/src/gallium/drivers/r600/eg_state_inlines.h
index f889178..af2ec56 100644
--- a/src/gallium/drivers/r600/eg_state_inlines.h
+++ b/src/gallium/drivers/r600/eg_state_inlines.h
@@ -343,6 +343,7 @@ static inline uint32_t r600_translate_colorswap(enum pipe_format format)
 	case PIPE_FORMAT_X8R8G8B8_UNORM:
 		return V_028C70_SWAP_ALT_REV;
 	case PIPE_FORMAT_R8G8B8A8_SNORM:
+	case PIPE_FORMAT_R8G8B8A8_UNORM:
 	case PIPE_FORMAT_R8G8B8X8_UNORM:
 		return V_028C70_SWAP_STD;
 




More information about the mesa-commit mailing list