r600g: report correct control flow depth
authorMarek Olšák <maraeo@gmail.com>
Thu, 31 Jan 2013 18:39:41 +0000 (19:39 +0100)
committerMarek Olšák <maraeo@gmail.com>
Wed, 6 Feb 2013 13:51:31 +0000 (14:51 +0100)
src/gallium/drivers/r600/r600_pipe.c

index 1338fc127b93493742ba3e9e67035b208abbf165..f1019f449086104d85f1e841ab08bcb1ad948ec0 100644 (file)
@@ -662,7 +662,6 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
                return 0;
        }
 
-       /* XXX: all these should be fixed, since r600 surely supports much more! */
        switch (param) {
        case PIPE_SHADER_CAP_MAX_INSTRUCTIONS:
        case PIPE_SHADER_CAP_MAX_ALU_INSTRUCTIONS:
@@ -670,7 +669,7 @@ static int r600_get_shader_param(struct pipe_screen* pscreen, unsigned shader, e
        case PIPE_SHADER_CAP_MAX_TEX_INDIRECTIONS:
                return 16384;
        case PIPE_SHADER_CAP_MAX_CONTROL_FLOW_DEPTH:
-               return 8; /* XXX */
+               return 32;
        case PIPE_SHADER_CAP_MAX_INPUTS:
                return 32;
        case PIPE_SHADER_CAP_MAX_TEMPS: