summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r300/r300_screen.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-10-24 21:05:38 +0200
committerMarek Olšák <[email protected]>2011-10-24 21:05:38 +0200
commitcdaf9b89e4497a93b889f5ac4502323b53627f82 (patch)
tree3cc49f0e6ec8488803b1635757402d3a11c70467 /src/gallium/drivers/r300/r300_screen.c
parentfc8196f7a6a77e1a1c753393ca43c4c133449608 (diff)
r300g: expose ARB_ES2_compatibility by claiming FIXED format support
Diffstat (limited to 'src/gallium/drivers/r300/r300_screen.c')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index c574a504924..ab1cec585c4 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -361,6 +361,10 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
format == PIPE_FORMAT_R16G16_FLOAT ||
format == PIPE_FORMAT_R16G16B16_FLOAT ||
format == PIPE_FORMAT_R16G16B16A16_FLOAT;
+ boolean is_fixed = format == PIPE_FORMAT_R32_FIXED ||
+ format == PIPE_FORMAT_R32G32_FIXED ||
+ format == PIPE_FORMAT_R32G32B32_FIXED ||
+ format == PIPE_FORMAT_R32G32B32A32_FIXED;
if (!util_format_is_supported(format, usage))
return FALSE;
@@ -422,9 +426,10 @@ static boolean r300_is_format_supported(struct pipe_screen* screen,
/* Check vertex buffer format support. */
if (usage & PIPE_BIND_VERTEX_BUFFER &&
- /* Half float is supported on >= RV350. */
+ /* Half float is supported on >= R400. */
(is_r400 || is_r500 || !is_half_float) &&
- r300_translate_vertex_data_type(format) != R300_INVALID_FORMAT) {
+ /* We have a fallback for FIXED. */
+ (is_fixed || r300_translate_vertex_data_type(format) != R300_INVALID_FORMAT)) {
retval |= PIPE_BIND_VERTEX_BUFFER;
}