nvfx: fill out CAPs for indirect addressing
authorMarek Olšák <maraeo@gmail.com>
Fri, 12 Nov 2010 02:04:48 +0000 (03:04 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 12 Nov 2010 02:13:22 +0000 (03:13 +0100)
To match shader model 2.0.

src/gallium/drivers/nvfx/nvfx_screen.c

index 3949cdaef9a04b67d87b34b396cb17fd193d62ba..8bf0907a08052cc3fff3c465c93656763619bd0e 100644 (file)
@@ -118,6 +118,11 @@ nvfx_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader, enum
                        return 0; /* we could expose these, but nothing uses them */
                case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
                    return 0;
+               case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
+               case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
+               case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
+               case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
+                       return 0;
                default:
                        break;
                }
@@ -150,6 +155,12 @@ nvfx_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader, enum
                        return 0; /* we could expose these, but nothing uses them */
                case PIPE_SHADER_CAP_TGSI_CONT_SUPPORTED:
                         return 1;
+               case PIPE_SHADER_CAP_INDIRECT_INPUT_ADDR:
+               case PIPE_SHADER_CAP_INDIRECT_OUTPUT_ADDR:
+               case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
+                       return 0;
+               case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
+                       return 1;
                default:
                        break;
                }