summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/nvfx
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2011-04-11 06:23:00 +0200
committerMarek Olšák <[email protected]>2011-04-15 05:08:00 +0200
commit75fa5c99a86c1ae0f8a4fecc016a5f82da9ae80a (patch)
treed36da8703a01b177d52df997d8af515c40e7de13 /src/gallium/drivers/nvfx
parent848f7d368d97f02eeb0c6546548784d639e3c3bf (diff)
gallium: add and use generic function for querying patented format support (v2)
v2: Unsigned floats are allowed regardless of the configure switch.
Diffstat (limited to 'src/gallium/drivers/nvfx')
-rw-r--r--src/gallium/drivers/nvfx/nvfx_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nvfx/nvfx_screen.c b/src/gallium/drivers/nvfx/nvfx_screen.c
index 0c8d33fb0aa..abbed9651ee 100644
--- a/src/gallium/drivers/nvfx/nvfx_screen.c
+++ b/src/gallium/drivers/nvfx/nvfx_screen.c
@@ -208,6 +208,9 @@ nvfx_screen_is_format_supported(struct pipe_screen *pscreen,
{
struct nvfx_screen *screen = nvfx_screen(pscreen);
+ if (!util_format_is_supported(format, bind))
+ return FALSE;
+
if (sample_count > 1)
return FALSE;