radeonsi: advertise 8 bits subpixel precision for viewport bounds
authorJózef Kucia <joseph.kucia@gmail.com>
Tue, 19 Jul 2016 11:07:26 +0000 (13:07 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 20 Jul 2016 10:45:31 +0000 (12:45 +0200)
Signed-off-by: Józef Kucia <joseph.kucia@gmail.com>
Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_pipe.c

index 768dc8cd6801d1eb630c2ac9f30a52c9d750a60d..6a496c2301584255ce1612d4371a45ef2e4cc85d 100644 (file)
@@ -444,7 +444,6 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
        case PIPE_CAP_PRIMITIVE_RESTART_FOR_PATCHES:
        case PIPE_CAP_TGSI_VOTE:
        case PIPE_CAP_MAX_WINDOW_RECTANGLES:
-       case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS:
                return 0;
 
        case PIPE_CAP_MAX_SHADER_PATCH_VARYINGS:
@@ -490,6 +489,8 @@ static int si_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
 
        case PIPE_CAP_MAX_VIEWPORTS:
                return R600_MAX_VIEWPORTS;
+       case PIPE_CAP_VIEWPORT_SUBPIXEL_BITS:
+               return 8;
 
        /* Timer queries, present when the clock frequency is non zero. */
        case PIPE_CAP_QUERY_TIMESTAMP: