nouveau: Add missing PIPE_SHADER_CAP_INTEGERS to get_shader_param()

Submitted by Hans de Goede on April 11, 2016, 12:13 p.m.

Details

Message ID 1460376826-15790-1-git-send-email-hdegoede@redhat.com
State New
Headers show
Series "nouveau: Add missing PIPE_SHADER_CAP_INTEGERS to get_shader_param()" ( rev: 1 ) in Nouveau

Not browsing as part of any series.

Commit Message

Hans de Goede April 11, 2016, 12:13 p.m.
Add missing PIPE_SHADER_CAP_INTEGERS for frag shaders to
nv30_screen_get_shader_param().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 src/gallium/drivers/nouveau/nv30/nv30_screen.c | 1 +
 1 file changed, 1 insertion(+)

Patch hide | download patch | download mbox

diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c
index db7c2d1..ece8af7 100644
--- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c
+++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c
@@ -324,6 +324,7 @@  nv30_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
       case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
       case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
       case PIPE_SHADER_CAP_SUBROUTINES:
+      case PIPE_SHADER_CAP_INTEGERS:
       case PIPE_SHADER_CAP_DOUBLES:
       case PIPE_SHADER_CAP_TGSI_DROUND_SUPPORTED:
       case PIPE_SHADER_CAP_TGSI_DFRACEXP_DLDEXP_SUPPORTED:

Comments

The prefix should be "nv30:" instead of "nouveau:" I guess.

Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>

On 04/11/2016 02:13 PM, Hans de Goede wrote:
> Add missing PIPE_SHADER_CAP_INTEGERS for frag shaders to
> nv30_screen_get_shader_param().
>
> Signed-off-by: Hans de Goede <hdegoede@redhat.com>
> ---
>   src/gallium/drivers/nouveau/nv30/nv30_screen.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/src/gallium/drivers/nouveau/nv30/nv30_screen.c b/src/gallium/drivers/nouveau/nv30/nv30_screen.c
> index db7c2d1..ece8af7 100644
> --- a/src/gallium/drivers/nouveau/nv30/nv30_screen.c
> +++ b/src/gallium/drivers/nouveau/nv30/nv30_screen.c
> @@ -324,6 +324,7 @@ nv30_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
>         case PIPE_SHADER_CAP_INDIRECT_TEMP_ADDR:
>         case PIPE_SHADER_CAP_INDIRECT_CONST_ADDR:
>         case PIPE_SHADER_CAP_SUBROUTINES:
> +      case PIPE_SHADER_CAP_INTEGERS:
>         case PIPE_SHADER_CAP_DOUBLES:
>         case PIPE_SHADER_CAP_TGSI_DROUND_SUPPORTED:
>         case PIPE_SHADER_CAP_TGSI_DFRACEXP_DLDEXP_SUPPORTED:
>