nir: Extract shader_info->cs.shared_size out of union.
It is valid for all stages, just 0 for most of them. In particular mesh/task shaders might be using it. Reviewed-by: Jesse Natalie <jenatali@microsoft.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10094>
This commit is contained in:

committed by
Marge Bot

parent
afd2f489d3
commit
580f1ac473
@@ -674,7 +674,7 @@ lvp_pipeline_compile(struct lvp_pipeline *pipeline,
|
||||
struct pipe_compute_state shstate = {0};
|
||||
shstate.prog = (void *)pipeline->pipeline_nir[MESA_SHADER_COMPUTE];
|
||||
shstate.ir_type = PIPE_SHADER_IR_NIR;
|
||||
shstate.req_local_mem = pipeline->pipeline_nir[MESA_SHADER_COMPUTE]->info.cs.shared_size;
|
||||
shstate.req_local_mem = pipeline->pipeline_nir[MESA_SHADER_COMPUTE]->info.shared_size;
|
||||
pipeline->shader_cso[PIPE_SHADER_COMPUTE] = device->queue.ctx->create_compute_state(device->queue.ctx, &shstate);
|
||||
} else {
|
||||
struct pipe_shader_state shstate = {0};
|
||||
|
Reference in New Issue
Block a user