diff options
author | Rob Clark <[email protected]> | 2014-09-26 15:40:35 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2014-09-27 13:34:07 -0400 |
commit | 546d6c8dc9f9a5555404917a31d68e72c6c3d82a (patch) | |
tree | 2ed7cc8a88893862042b9aaed0691a8dc97f6edc /src/gallium/drivers | |
parent | 24cd746e4b8d97bfa113dad4988bb1b179ee943d (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]>
Diffstat (limited to 'src/gallium/drivers')
-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 76fa7aa6deb..3073105bf7c 100644 --- a/src/gallium/drivers/freedreno/freedreno_screen.c +++ b/src/gallium/drivers/freedreno/freedreno_screen.c @@ -223,6 +223,9 @@ fd_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_SAMPLER_VIEW_TARGET: 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: |