st/mesa: check requirements for MESA_texture_const_bandwidth
This extension depends on EXT_memory_object, and is not usable without it. So let's disable it, so applications don't try to use it. Fixes:5cccd6d689
("mesa: Implement MESA_texture_const_bandwidth") Reviewed-by: Marek Olšák <marek.olsak@amd.com> Reviewed-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32349> (cherry picked from commit7b0d401265
)
This commit is contained in:

committed by
Dylan Baker

parent
36b6f3ade4
commit
5771727e70
@@ -1384,7 +1384,7 @@
|
||||
"description": "st/mesa: check requirements for MESA_texture_const_bandwidth",
|
||||
"nominated": true,
|
||||
"nomination_type": 2,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "5cccd6d689c5104599beef5793865d68837488b5",
|
||||
"notes": null
|
||||
|
@@ -1161,6 +1161,10 @@ void st_init_extensions(struct pipe_screen *screen,
|
||||
}
|
||||
}
|
||||
|
||||
/* MESA_texture_const_bandwidth depends on EXT_memory_object */
|
||||
if (!extensions->EXT_memory_object)
|
||||
extensions->MESA_texture_const_bandwidth = GL_FALSE;
|
||||
|
||||
/* EXT implies ARB here */
|
||||
if (extensions->EXT_texture_filter_minmax)
|
||||
extensions->ARB_texture_filter_minmax = GL_TRUE;
|
||||
|
Reference in New Issue
Block a user