summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChia-I Wu <olv@lunarg.com>2010-04-11 01:14:42 +0800
committerChia-I Wu <olv@lunarg.com>2010-04-11 01:17:47 +0800
commit5fdda9d78d7924fecd711c21910879b7a01dab3f (patch)
tree6fe87907782b90dd75aa1a9540fec77dd45d5c75
parentf7730c0740cc8a43c3573dcdbf43e76630d957f6 (diff)
st/vega: Require both depth and stencil.
The implementation requires not only a depth buffer, but also a stencil buffer.
-rw-r--r--src/gallium/state_trackers/vega/vg_manager.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gallium/state_trackers/vega/vg_manager.c b/src/gallium/state_trackers/vega/vg_manager.c
index 256c23775e..19a3405360 100644
--- a/src/gallium/state_trackers/vega/vg_manager.c
+++ b/src/gallium/state_trackers/vega/vg_manager.c
@@ -32,6 +32,7 @@
#include "pipe/p_screen.h"
#include "util/u_memory.h"
#include "util/u_inlines.h"
+#include "util/u_format.h"
#include "vg_manager.h"
#include "vg_context.h"
@@ -332,10 +333,7 @@ vg_api_is_visual_supported(struct st_api *stapi,
const struct st_visual *visual)
{
/* the impl requires a depth/stencil buffer */
- if (visual->depth_stencil_format == PIPE_FORMAT_NONE)
- return FALSE;
-
- return TRUE;
+ return util_format_is_depth_and_stencil(visual->depth_stencil_format);
}
static st_proc_t