freedreno: we have more than 0 viewports!
authorRob Clark <robclark@freedesktop.org>
Fri, 26 Sep 2014 19:40:35 +0000 (15:40 -0400)
committerRob Clark <robclark@freedesktop.org>
Sat, 27 Sep 2014 17:34:07 +0000 (13:34 -0400)
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 <robclark@freedesktop.org>
src/gallium/drivers/freedreno/freedreno_screen.c

index 76fa7aa6deb156b3f9fc7ec7809b85aa5bf3cb98..3073105bf7c363aa4f960ee42a27c070f03da3eb 100644 (file)
@@ -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: