summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorSamuel Pitoiset <[email protected]>2016-04-26 23:23:12 +0200
committerSamuel Pitoiset <[email protected]>2016-05-21 18:33:03 +0200
commitd04050071d02fab6f1578fc603f63e0181edd5eb (patch)
treeb6f86992c87ffbcc7224483c826a3a509b3b50d7 /src/gallium/drivers
parent362e17a7123e55d22a188943886a7ead00def6b6 (diff)
nvc0: enable ARB_shader_image_load_store on GF100
Signed-off-by: Samuel Pitoiset <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/nouveau/nvc0/nvc0_screen.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
index 3178588819c..4ffefcd7b94 100644
--- a/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
+++ b/src/gallium/drivers/nouveau/nvc0/nvc0_screen.c
@@ -376,6 +376,9 @@ nvc0_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
case PIPE_SHADER_CAP_MAX_SHADER_IMAGES:
if (class_3d == NVE4_3D_CLASS || class_3d == NVF0_3D_CLASS)
return NVC0_MAX_IMAGES;
+ if (class_3d < NVE4_3D_CLASS)
+ if (shader == PIPE_SHADER_FRAGMENT || shader == PIPE_SHADER_COMPUTE)
+ return NVC0_MAX_IMAGES;
return 0;
default:
NOUVEAU_ERR("unknown PIPE_SHADER_CAP %d\n", param);