[Mesa-dev] [PATCH 15/24] mesa/st: expose EXT_memory_object and EXT_memory_object_fd
Samuel Pitoiset
samuel.pitoiset at gmail.com
Fri Jul 28 09:51:33 UTC 2017
Reviewed-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
On 07/27/2017 03:08 PM, Timothy Arceri wrote:
> From: Andres Rodriguez <andresx7 at gmail.com>
>
> v2: use PIPE_CAP_MEMOBJ to guard the extension
>
> v3 (Timothy Arceri):
> - expose extensions via the cap_mappings array
>
> Signed-off-by: Andres Rodriguez <andresx7 at gmail.com>
> Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>
>
> fir expose
> ---
> src/mesa/main/extensions_table.h | 2 ++
> src/mesa/main/mtypes.h | 2 ++
> src/mesa/state_tracker/st_extensions.c | 2 ++
> 3 files changed, 6 insertions(+)
>
> diff --git a/src/mesa/main/extensions_table.h b/src/mesa/main/extensions_table.h
> index 757b7bf942..347a6197ed 100644
> --- a/src/mesa/main/extensions_table.h
> +++ b/src/mesa/main/extensions_table.h
> @@ -219,20 +219,22 @@ EXT(EXT_framebuffer_blit , dummy_true
> EXT(EXT_framebuffer_multisample , EXT_framebuffer_multisample , GLL, GLC, x , x , 2005)
> EXT(EXT_framebuffer_multisample_blit_scaled , EXT_framebuffer_multisample_blit_scaled, GLL, GLC, x , x , 2011)
> EXT(EXT_framebuffer_object , dummy_true , GLL, x , x , x , 2000)
> EXT(EXT_framebuffer_sRGB , EXT_framebuffer_sRGB , GLL, GLC, x , x , 1998)
> EXT(EXT_geometry_point_size , OES_geometry_shader , x , x , x , 31, 2015)
> EXT(EXT_geometry_shader , OES_geometry_shader , x , x , x , 31, 2015)
> EXT(EXT_gpu_program_parameters , EXT_gpu_program_parameters , GLL, x , x , x , 2006)
> EXT(EXT_gpu_shader4 , EXT_gpu_shader4 , GLL, GLC, x , x , 2006)
> EXT(EXT_gpu_shader5 , ARB_gpu_shader5 , x , x , x , 31, 2014)
> EXT(EXT_map_buffer_range , ARB_map_buffer_range , x , x , ES1, ES2, 2012)
> +EXT(EXT_memory_object , EXT_memory_object , GLL, GLC, x , ES2, 2017)
> +EXT(EXT_memory_object_fd , EXT_memory_object_fd , GLL, GLC, x , ES2, 2017)
> EXT(EXT_multi_draw_arrays , dummy_true , GLL, x , ES1, ES2, 1999)
> EXT(EXT_packed_depth_stencil , dummy_true , GLL, GLC, x , x , 2005)
> EXT(EXT_packed_float , EXT_packed_float , GLL, GLC, x , x , 2004)
> EXT(EXT_packed_pixels , dummy_true , GLL, x , x , x , 1997)
> EXT(EXT_pixel_buffer_object , EXT_pixel_buffer_object , GLL, GLC, x , x , 2004)
> EXT(EXT_point_parameters , EXT_point_parameters , GLL, x , x , x , 1997)
> EXT(EXT_polygon_offset , dummy_true , GLL, x , x , x , 1995)
> EXT(EXT_polygon_offset_clamp , EXT_polygon_offset_clamp , GLL, GLC, ES1, ES2, 2014)
> EXT(EXT_primitive_bounding_box , OES_primitive_bounding_box , x , x , x , 31, 2014)
> EXT(EXT_provoking_vertex , EXT_provoking_vertex , GLL, GLC, x , x , 2009)
> diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h
> index 8cb9ae3d17..833b504be4 100644
> --- a/src/mesa/main/mtypes.h
> +++ b/src/mesa/main/mtypes.h
> @@ -4109,20 +4109,22 @@ struct gl_extensions
> GLboolean EXT_blend_equation_separate;
> GLboolean EXT_blend_func_separate;
> GLboolean EXT_blend_minmax;
> GLboolean EXT_depth_bounds_test;
> GLboolean EXT_draw_buffers2;
> GLboolean EXT_framebuffer_multisample;
> GLboolean EXT_framebuffer_multisample_blit_scaled;
> GLboolean EXT_framebuffer_sRGB;
> GLboolean EXT_gpu_program_parameters;
> GLboolean EXT_gpu_shader4;
> + GLboolean EXT_memory_object;
> + GLboolean EXT_memory_object_fd;
> GLboolean EXT_packed_float;
> GLboolean EXT_pixel_buffer_object;
> GLboolean EXT_point_parameters;
> GLboolean EXT_polygon_offset_clamp;
> GLboolean EXT_provoking_vertex;
> GLboolean EXT_shader_integer_mix;
> GLboolean EXT_shader_samples_identical;
> GLboolean EXT_stencil_two_side;
> GLboolean EXT_texture_array;
> GLboolean EXT_texture_compression_latc;
> diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c
> index 74193cc492..27e2d6f96c 100644
> --- a/src/mesa/state_tracker/st_extensions.c
> +++ b/src/mesa/state_tracker/st_extensions.c
> @@ -626,20 +626,22 @@ void st_init_extensions(struct pipe_screen *screen,
> { o(ARB_timer_query), PIPE_CAP_QUERY_TIMESTAMP },
> { o(ARB_transform_feedback2), PIPE_CAP_STREAM_OUTPUT_PAUSE_RESUME },
> { o(ARB_transform_feedback3), PIPE_CAP_STREAM_OUTPUT_INTERLEAVE_BUFFERS },
>
> { o(KHR_blend_equation_advanced), PIPE_CAP_TGSI_FS_FBFETCH },
>
> { o(EXT_blend_equation_separate), PIPE_CAP_BLEND_EQUATION_SEPARATE },
> { o(EXT_depth_bounds_test), PIPE_CAP_DEPTH_BOUNDS_TEST },
> { o(EXT_draw_buffers2), PIPE_CAP_INDEP_BLEND_ENABLE },
> { o(EXT_polygon_offset_clamp), PIPE_CAP_POLYGON_OFFSET_CLAMP },
> + { o(EXT_memory_object), PIPE_CAP_MEMOBJ },
> + { o(EXT_memory_object_fd), PIPE_CAP_MEMOBJ },
> { o(EXT_stencil_two_side), PIPE_CAP_TWO_SIDED_STENCIL },
> { o(EXT_texture_array), PIPE_CAP_MAX_TEXTURE_ARRAY_LAYERS },
> { o(EXT_texture_filter_anisotropic), PIPE_CAP_ANISOTROPIC_FILTER },
> { o(EXT_texture_mirror_clamp), PIPE_CAP_TEXTURE_MIRROR_CLAMP },
> { o(EXT_texture_swizzle), PIPE_CAP_TEXTURE_SWIZZLE },
> { o(EXT_transform_feedback), PIPE_CAP_MAX_STREAM_OUTPUT_BUFFERS },
> { o(EXT_window_rectangles), PIPE_CAP_MAX_WINDOW_RECTANGLES },
>
> { o(AMD_pinned_memory), PIPE_CAP_RESOURCE_FROM_USER_MEMORY },
> { o(ATI_meminfo), PIPE_CAP_QUERY_MEMORY_INFO },
>
More information about the mesa-dev
mailing list