mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 02:58:05 +02:00
i965: get shared_size from shader_info rather than gl_shader_program
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
This commit is contained in:
parent
234211ec8d
commit
be9a6a7eb7
1 changed files with 2 additions and 2 deletions
|
|
@ -68,7 +68,7 @@ brw_codegen_cs_prog(struct brw_context *brw,
|
|||
|
||||
memset(&prog_data, 0, sizeof(prog_data));
|
||||
|
||||
if (prog->Comp.SharedSize > 64 * 1024) {
|
||||
if (cp->program.info.cs.shared_size > 64 * 1024) {
|
||||
prog->data->LinkStatus = false;
|
||||
const char *error_str =
|
||||
"Compute shader used more than 64KB of shared variables";
|
||||
|
|
@ -78,7 +78,7 @@ brw_codegen_cs_prog(struct brw_context *brw,
|
|||
ralloc_free(mem_ctx);
|
||||
return false;
|
||||
} else {
|
||||
prog_data.base.total_shared = prog->Comp.SharedSize;
|
||||
prog_data.base.total_shared = cp->program.info.cs.shared_size;
|
||||
}
|
||||
|
||||
assign_cs_binding_table_offsets(devinfo, prog, &cp->program, &prog_data);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue