mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-07 17:58:26 +02:00
panfrost: Stub out set_shader_images().
If PAN_MESA_DEBUG=deqp is set to enable testing, then we advertise shader
images to get GLES3.1, even though we don't have any of the shader image
funcs hooked up. This caused breakage when cso started unbinding shader
images at context destruction.
Just stub out the function for now, you'll still segfault when creating an
image.
Cc: mesa-stable (for the next commit)
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8530>
(cherry picked from commit f259fcae83)
This commit is contained in:
parent
f7918844ee
commit
70e586cd0e
2 changed files with 12 additions and 1 deletions
|
|
@ -436,7 +436,7 @@
|
|||
"description": "panfrost: Stub out set_shader_images().",
|
||||
"nominated": true,
|
||||
"nomination_type": 0,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": null
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1128,6 +1128,16 @@ panfrost_set_shader_buffers(
|
|||
buffers, start, count);
|
||||
}
|
||||
|
||||
static void
|
||||
panfrost_set_shader_images(
|
||||
struct pipe_context *pctx,
|
||||
enum pipe_shader_type shader,
|
||||
unsigned start, unsigned count,
|
||||
const struct pipe_image_view *images)
|
||||
{
|
||||
/* TODO */
|
||||
}
|
||||
|
||||
static void
|
||||
panfrost_set_framebuffer_state(struct pipe_context *pctx,
|
||||
const struct pipe_framebuffer_state *fb)
|
||||
|
|
@ -1523,6 +1533,7 @@ panfrost_create_context(struct pipe_screen *screen, void *priv, unsigned flags)
|
|||
gallium->set_vertex_buffers = panfrost_set_vertex_buffers;
|
||||
gallium->set_constant_buffer = panfrost_set_constant_buffer;
|
||||
gallium->set_shader_buffers = panfrost_set_shader_buffers;
|
||||
gallium->set_shader_images = panfrost_set_shader_images;
|
||||
|
||||
gallium->set_stencil_ref = panfrost_set_stencil_ref;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue