From: Edward O'Callaghan Date: Sun, 10 Jan 2016 13:50:32 +0000 (+1100) Subject: radeonsi: Set PIPE_SHADER_CAP_MAX_SHADER_IMAGES X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5219eb15e12903a10c0aea22a7460bb6867a958e;p=mesa.git radeonsi: Set PIPE_SHADER_CAP_MAX_SHADER_IMAGES This enables ARB_shader_image_load_store and ARB_shader_image_size. Signed-off-by: Edward O'Callaghan [allow the same number of images for all shader stages and require LLVM 3.9] Reviewed-by: Marek Olšák --- diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index 042cfc764fd..dd1103eed06 100644 --- a/src/gallium/drivers/radeonsi/si_pipe.c +++ b/src/gallium/drivers/radeonsi/si_pipe.c @@ -538,8 +538,9 @@ static int si_get_shader_param(struct pipe_screen* pscreen, unsigned shader, enu case PIPE_SHADER_CAP_MAX_UNROLL_ITERATIONS_HINT: return 32; case PIPE_SHADER_CAP_MAX_SHADER_BUFFERS: - case PIPE_SHADER_CAP_MAX_SHADER_IMAGES: return 0; + case PIPE_SHADER_CAP_MAX_SHADER_IMAGES: + return HAVE_LLVM >= 0x0309 ? SI_NUM_IMAGES : 0; } return 0; }