summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2010-04-01 19:00:03 +0100
committerJosé Fonseca <[email protected]>2010-04-01 19:01:46 +0100
commit7e1aceaf0a1fb7b4ee44c7bc488f03b584b8b785 (patch)
tree36cc1782e1dfbbf362bc0a3ff1195d20f4d60b6f /src/gallium/drivers/llvmpipe
parent13d2f3c7380be6cf476d56269c17b52c53f313b3 (diff)
llvmpipe: Support sampling from PIPE_FORMAT_R32_FLOAT.
Diffstat (limited to 'src/gallium/drivers/llvmpipe')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_screen.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_screen.c b/src/gallium/drivers/llvmpipe/lp_screen.c
index 5ad581bd179..625d4092db6 100644
--- a/src/gallium/drivers/llvmpipe/lp_screen.c
+++ b/src/gallium/drivers/llvmpipe/lp_screen.c
@@ -222,7 +222,8 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
/* FIXME: Temporary restrictions. See lp_bld_sample_soa.c */
if(tex_usage & PIPE_TEXTURE_USAGE_SAMPLER) {
- if(!format_desc->is_bitmask)
+ if(!format_desc->is_bitmask &&
+ format != PIPE_FORMAT_R32_FLOAT)
return FALSE;
if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB &&