[Mesa-dev] [PATCH 11/11] freedreno: enable ARB_shader_atomic_counters

Ilia Mirkin imirkin at alum.mit.edu
Sat Sep 26 23:33:27 PDT 2015


Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
---
 docs/relnotes/11.1.0.html                        | 1 +
 src/gallium/drivers/freedreno/freedreno_screen.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/docs/relnotes/11.1.0.html b/docs/relnotes/11.1.0.html
index e28fab6..6e59294 100644
--- a/docs/relnotes/11.1.0.html
+++ b/docs/relnotes/11.1.0.html
@@ -45,6 +45,7 @@ Note: some of the new features are only available with certain drivers.
 
 <ul>
 <li>GL_ARB_blend_func_extended on freedreno (a3xx)</li>
+<li>GL_ARB_shader_atomic_counters on freedreno</li>
 <li>GL_ARB_shader_texture_image_samples on i965, nv50, nvc0, r600, radeonsi</li>
 <li>GL_ARB_texture_barrier / GL_NV_texture_barrier on i965</li>
 <li>GL_ARB_texture_query_lod on softpipe</li>
diff --git a/src/gallium/drivers/freedreno/freedreno_screen.c b/src/gallium/drivers/freedreno/freedreno_screen.c
index 34f33c2..208d8d2 100644
--- a/src/gallium/drivers/freedreno/freedreno_screen.c
+++ b/src/gallium/drivers/freedreno/freedreno_screen.c
@@ -405,7 +405,7 @@ fd_screen_get_shader_param(struct pipe_screen *pscreen, unsigned shader,
 	case PIPE_SHADER_CAP_PREFERRED_IR:
 		return PIPE_SHADER_IR_TGSI;
 	case PIPE_SHADER_CAP_MAX_BUFFERS:
-		return 0;
+		return is_ir3(screen) ? PIPE_MAX_SHADER_BUFFERS : 0;
 	}
 	debug_printf("unknown shader param %d\n", param);
 	return 0;
-- 
2.4.9



More information about the mesa-dev mailing list