panfrost: Rename prepare_rsd->prepare_shader
This hook will be repurposed on Valhall to prepare the Shader Program Descriptor, which takes the role of the RSD. Rename to avoid confusion. Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/15204>
This commit is contained in:
committed by
Marge Bot
parent
631c01fc42
commit
28743a5556
@@ -88,7 +88,7 @@ panfrost_shader_compile(struct pipe_screen *pscreen,
|
||||
/* Don't upload RSD for fragment shaders since they need draw-time
|
||||
* merging for e.g. depth/stencil/alpha */
|
||||
bool upload = stage != MESA_SHADER_FRAGMENT;
|
||||
screen->vtbl.prepare_rsd(state, desc_pool, upload);
|
||||
screen->vtbl.prepare_shader(state, desc_pool, upload);
|
||||
|
||||
panfrost_analyze_sysvals(state);
|
||||
|
||||
|
||||
@@ -3623,7 +3623,7 @@ panfrost_create_blend_state(struct pipe_context *pipe,
|
||||
}
|
||||
|
||||
static void
|
||||
prepare_rsd(struct panfrost_shader_state *state,
|
||||
prepare_shader(struct panfrost_shader_state *state,
|
||||
struct panfrost_pool *pool, bool upload)
|
||||
{
|
||||
struct mali_renderer_state_packed *out =
|
||||
@@ -3791,7 +3791,7 @@ GENX(panfrost_cmdstream_screen_init)(struct panfrost_screen *screen)
|
||||
{
|
||||
struct panfrost_device *dev = &screen->dev;
|
||||
|
||||
screen->vtbl.prepare_rsd = prepare_rsd;
|
||||
screen->vtbl.prepare_shader = prepare_shader;
|
||||
screen->vtbl.emit_tls = emit_tls;
|
||||
screen->vtbl.emit_fbd = emit_fbd;
|
||||
screen->vtbl.emit_fragment_job = emit_fragment_job;
|
||||
|
||||
@@ -51,9 +51,9 @@ struct pan_blend_state;
|
||||
/* Virtual table of per-generation (GenXML) functions */
|
||||
|
||||
struct panfrost_vtable {
|
||||
/* Prepares the renderer state descriptor for a given compiled shader,
|
||||
* and if desired uploads it as well */
|
||||
void (*prepare_rsd)(struct panfrost_shader_state *,
|
||||
/* Prepares the renderer state descriptor or shader program descriptor
|
||||
* for a given compiled shader, and if desired uploads it as well */
|
||||
void (*prepare_shader)(struct panfrost_shader_state *,
|
||||
struct panfrost_pool *, bool);
|
||||
|
||||
/* Emits a thread local storage descriptor */
|
||||
|
||||
Reference in New Issue
Block a user