diff options
author | Rob Clark <[email protected]> | 2014-09-26 15:40:35 -0400 |
---|---|---|
committer | Emil Velikov <[email protected]> | 2014-10-29 17:43:59 +0000 |
commit | fb10a43b845e58dc25f693be79cd6f31ceb48c84 (patch) | |
tree | fb4526ab429f0adacd2f885c73ba2f09048949a8 | |
parent | e1c2a8f2cb76262c31452f387bb326ab30d88b33 (diff) |
freedreno: we have more than 0 viewports!
4155d1c7 'st/mesa: drop dependence on API profile in st_init_extensions'
broke freedreno because somehow 'PIPE_CAP_MAX_VIEWPORTS' fell through
the cracks. Resulting that we reported zero viewports. So the state
tracker never bothered to give us any valid viewport!
Signed-off-by: Rob Clark <[email protected]>
(cherry picked from commit 546d6c8dc9f9a5555404917a31d68e72c6c3d82a)
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_screen.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c index 1885198c47e..48ab78f3aa0 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -222,6 +222,9 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_CONDITIONAL_RENDER_INVERTED: return 0; + case PIPE_CAP_MAX_VIEWPORTS: + return 1; + /* Stream output. */ case PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS: case PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME: |