mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-01 10:18:05 +02:00
anv: reuse cs_prog_data pointer
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30539>
This commit is contained in:
parent
f4a812a229
commit
398e6cf38b
1 changed files with 2 additions and 3 deletions
|
|
@ -2200,12 +2200,11 @@ genX(compute_pipeline_emit)(struct anv_compute_pipeline *pipeline)
|
|||
vfe.URBEntryAllocationSize = 2;
|
||||
vfe.CURBEAllocationSize = vfe_curbe_allocation;
|
||||
|
||||
if (cs_bin->prog_data->total_scratch) {
|
||||
if (cs_prog_data->base.total_scratch) {
|
||||
/* Broadwell's Per Thread Scratch Space is in the range [0, 11]
|
||||
* where 0 = 1k, 1 = 2k, 2 = 4k, ..., 11 = 2M.
|
||||
*/
|
||||
vfe.PerThreadScratchSpace =
|
||||
ffs(cs_bin->prog_data->total_scratch) - 11;
|
||||
vfe.PerThreadScratchSpace = ffs(cs_prog_data->base.total_scratch) - 11;
|
||||
vfe.ScratchSpaceBasePointer =
|
||||
get_scratch_address(&pipeline->base, MESA_SHADER_COMPUTE, cs_bin);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue