mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-10 07:20:43 +02:00
r600g: add missing vertex fetch formats to the translation table.
fixes at least 2 more piglits.
This commit is contained in:
parent
31b84acbd2
commit
7299023c2a
2 changed files with 3 additions and 0 deletions
|
|
@ -252,6 +252,7 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
|
|||
case PIPE_FORMAT_R8SG8SB8UX8U_NORM:
|
||||
case PIPE_FORMAT_X8B8G8R8_UNORM:
|
||||
case PIPE_FORMAT_X8R8G8B8_UNORM:
|
||||
case PIPE_FORMAT_R8G8B8_UNORM:
|
||||
return V_0280A0_COLOR_8_8_8_8;
|
||||
|
||||
case PIPE_FORMAT_R10G10B10A2_UNORM:
|
||||
|
|
@ -278,6 +279,7 @@ static INLINE uint32_t r600_translate_colorformat(enum pipe_format format)
|
|||
|
||||
/* 128-bit buffers. */
|
||||
case PIPE_FORMAT_R32G32B32_FLOAT:
|
||||
return V_0280A0_COLOR_32_32_32_FLOAT;
|
||||
case PIPE_FORMAT_R32G32B32A32_FLOAT:
|
||||
return V_0280A0_COLOR_32_32_32_32_FLOAT;
|
||||
|
||||
|
|
|
|||
|
|
@ -199,6 +199,7 @@
|
|||
#define V_0280A0_COLOR_16_16_16_16_FLOAT 0x00000020
|
||||
#define V_0280A0_COLOR_32_32_32_32 0x00000022
|
||||
#define V_0280A0_COLOR_32_32_32_32_FLOAT 0x00000023
|
||||
#define V_0280A0_COLOR_32_32_32_FLOAT 0x00000030
|
||||
#define S_0280A0_ARRAY_MODE(x) (((x) & 0xF) << 8)
|
||||
#define G_0280A0_ARRAY_MODE(x) (((x) >> 8) & 0xF)
|
||||
#define C_0280A0_ARRAY_MODE 0xFFFFF0FF
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue