mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-07 17:20:21 +01:00
aco/ra: use a correct stride for subdword get_reg_impl
fossil-db (gfx1201): Totals from 3 (0.00% of 79377) affected shaders: Instrs: 1312 -> 1308 (-0.30%) CodeSize: 7112 -> 7096 (-0.22%) Latency: 5381 -> 5382 (+0.02%) InvThroughput: 753 -> 752 (-0.13%) Copies: 69 -> 68 (-1.45%) VALU: 836 -> 835 (-0.12%) Signed-off-by: Rhys Perry <pendingchaos02@gmail.com> Reviewed-by: Daniel Schürmann <daniel@schuermann.dev> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34679>
This commit is contained in:
parent
ae6d4f1195
commit
3c021b79b4
1 changed files with 1 additions and 1 deletions
|
|
@ -1271,7 +1271,7 @@ get_reg_impl(ra_ctx& ctx, const RegisterFile& reg_file, std::vector<parallelcopy
|
|||
{
|
||||
const PhysRegInterval& bounds = info.bounds;
|
||||
uint32_t size = info.size;
|
||||
uint32_t stride = info.stride;
|
||||
uint32_t stride = info.rc.is_subdword() ? DIV_ROUND_UP(info.stride, 4) : info.stride;
|
||||
RegClass rc = info.rc;
|
||||
|
||||
/* check how many free regs we have */
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue