mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 17:10:11 +01:00
mesa/st: do not enable EXT_texture_buffer_object with rgba only
GL_EXT_texture_buffer_object requires support for alpha, luminance,
luminance-alpha and intensity formats. If we can't support those, we
can't enable the extension.
Fixes: 45ca7798dc ("glsl: handle interactions between EXT_gpu_shader4 and texture extensions")
Reviewed-by: Lars-Ivar Hesselberg Simonsen <lars-ivar.simonsen@arm.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/38162>
This commit is contained in:
parent
9d5e0c1ad2
commit
6f2b8c3f61
1 changed files with 3 additions and 1 deletions
|
|
@ -1266,7 +1266,9 @@ void st_init_extensions(struct pipe_screen *screen,
|
|||
* pipe cap.
|
||||
*/
|
||||
extensions->EXT_gpu_shader4 = GL_TRUE;
|
||||
extensions->EXT_texture_buffer_object = GL_TRUE;
|
||||
|
||||
if (!screen->caps.buffer_sampler_view_rgba_only)
|
||||
extensions->EXT_texture_buffer_object = GL_TRUE;
|
||||
|
||||
if (consts->MaxTransformFeedbackBuffers &&
|
||||
screen->caps.shader_array_components)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue