From 2cad65d2204635a8d596f58a989dfbf222914f90 Mon Sep 17 00:00:00 2001 From: Vasily Khoruzhick Date: Sun, 22 May 2022 23:32:16 -0700 Subject: [PATCH] lima: enable PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT It looks like we don't need to do anything special to enable it. Piglit spec@arb_buffer_storage@bufferstorage-persistent skip: 16 => skip: 12, pass: 4. The rest require GL_ARB_shader_image_load_store Reviewed-by: Erico Nunes Signed-off-by: Vasily Khoruzhick Part-of: --- docs/features.txt | 2 +- src/gallium/drivers/lima/lima_screen.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs/features.txt index 7c894a5..0a59d3a 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -195,7 +195,7 @@ GL 4.3, GLSL 4.30 -- all DONE: i965/gen8+, nvc0, r600, radeonsi, llvmpipe, virgl GL 4.4, GLSL 4.40 -- all DONE: i965/gen8+, nvc0, r600, radeonsi, llvmpipe, zink GL_MAX_VERTEX_ATTRIB_STRIDE DONE (all drivers) - GL_ARB_buffer_storage DONE (freedreno, i965, nv50, v3d, vc4) + GL_ARB_buffer_storage DONE (freedreno, i965, nv50, v3d, vc4, lima) GL_ARB_clear_texture DONE (i965, nv50, softpipe, virgl) GL_ARB_enhanced_layouts DONE (i965, nv50, softpipe, virgl) - compile-time constant expressions DONE diff --git a/src/gallium/drivers/lima/lima_screen.c b/src/gallium/drivers/lima/lima_screen.c index a04cf0c..46db45b 100644 --- a/src/gallium/drivers/lima/lima_screen.c +++ b/src/gallium/drivers/lima/lima_screen.c @@ -107,6 +107,7 @@ lima_screen_get_param(struct pipe_screen *pscreen, enum pipe_cap param) case PIPE_CAP_TEXTURE_SWIZZLE: case PIPE_CAP_VERTEX_COLOR_UNCLAMPED: case PIPE_CAP_TEXTURE_BARRIER: + case PIPE_CAP_BUFFER_MAP_PERSISTENT_COHERENT: return 1; /* Unimplemented, but for exporting OpenGL 2.0 */ -- 2.7.4