[Mesa-dev] [RFC 23/24] nvc0: enable ARB_shader_image_load_store on GK104
Ilia Mirkin
imirkin at alum.mit.edu
Wed Apr 13 20:45:02 UTC 2016
On Tue, Apr 12, 2016 at 7:57 PM, Samuel Pitoiset
<samuel.pitoiset at gmail.com> wrote:
> From: Ilia Mirkin <imirkin at alum.mit.edu>
That doesn't need to come from me... make yourself the author.
>
> This exposes 8 images for all shader types.
>
> Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Ilia Mirkin <imirkin at alum.mit.edu>
> ---
> src/gallium/drivers/nouveau/nvc0/nvc0_screen.c | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> index 1853610..2d22a50 100644
> --- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> +++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
> @@ -380,6 +380,8 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
> case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT:
> return 32;
> case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
> + if (class_3d == NVE4_3D_CLASS)
> + return NVC0_MAX_IMAGES;
> return 0;
> default:
> NOUVEAU_ERR("unknown PIPE_SHADER_CAP %d\n", param);
> --
> 2.8.0
>
More information about the mesa-dev
mailing list