summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/svga
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2013-11-07 14:29:50 -0700
committerBrian Paul <[email protected]>2013-11-07 15:21:40 -0700
commit6592a6d065845028034f2a032e7dce635f214ce7 (patch)
treee8cbc31bae7d3e3580dcceb304b3eb5b3cdbe8fa /src/gallium/drivers/svga
parent055dbd5c3ecd319c7234181333280e5eb1e706e1 (diff)
svga: always return 4 for PIPE_MAX_COLOR_BUFS
Even if the query returns 8, only 4 really work. Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/drivers/svga')
-rw-r--r--src/gallium/drivers/svga/svga_screen.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index be03c536eb5..cc6214dfbc5 100644
--- a/src/gallium/drivers/svga/svga_screen.c
+++ b/src/gallium/drivers/svga/svga_screen.c
@@ -154,11 +154,10 @@ svga_get_param(struct pipe_screen *screen, enum pipe_cap param)
case PIPE_CAP_TGSI_TEXCOORD:
return 0;
case PIPE_CAP_MAX_RENDER_TARGETS:
- if(!sws->get_cap(sws, SVGA3D_DEVCAP_MAX_RENDER_TARGETS, &result))
- return 1;
- if(!result.u)
- return 1;
- return MIN2(result.u, PIPE_MAX_COLOR_BUFS);
+ /* The SVGA3D device always supports 4 targets at this time, regardless
+ * of what querying SVGA3D_DEVCAP_MAX_RENDER_TARGETS might return.
+ */
+ return 4;
case PIPE_CAP_OCCLUSION_QUERY:
return 1;
case PIPE_CAP_QUERY_TIME_ELAPSED: