mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 16:08:04 +02:00
nvc0: reduce the number of GPR used when reading MP perf counters
No need to allocate more GPR than used in the compute kernel which reads MP performance counters on Fermi. Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
parent
f94e1d9738
commit
69271bba06
1 changed files with 2 additions and 1 deletions
|
|
@ -1014,14 +1014,15 @@ nvc0_hw_sm_end_query(struct nvc0_context *nvc0, struct nvc0_hw_query *hq)
|
|||
struct nvc0_program *prog = CALLOC_STRUCT(nvc0_program);
|
||||
prog->type = PIPE_SHADER_COMPUTE;
|
||||
prog->translated = true;
|
||||
prog->num_gprs = 14;
|
||||
prog->parm_size = 12;
|
||||
if (is_nve4) {
|
||||
prog->code = (uint32_t *)nve4_read_hw_sm_counters_code;
|
||||
prog->code_size = sizeof(nve4_read_hw_sm_counters_code);
|
||||
prog->num_gprs = 14;
|
||||
} else {
|
||||
prog->code = (uint32_t *)nvc0_read_hw_sm_counters_code;
|
||||
prog->code_size = sizeof(nvc0_read_hw_sm_counters_code);
|
||||
prog->num_gprs = 12;
|
||||
}
|
||||
screen->pm.prog = prog;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue