HomePhabricator
Diffusion Mesa bf42c18bd994

nvir/nvc0: Align the user input size to 0x4

Authored by pmoreau on Dec 27 2017, 3:28 AM.

Description

nvir/nvc0: Align the user input size to 0x4

This is similar to what is done for NV50, and prevents from running into
“PUSH_NOT_ENOUGH_DATA” when the array is not aligned; as both the byte
size and the size in 32-bit words are uploaded, the hardware would
detect that the size in 32-bit words was less than expected if the size
was not aligned to 4-bytes first.

Details

Committed
pmoreauMar 24 2018, 1:19 AM
Pushed
pmoreauMar 24 2018, 1:43 AM
Parents
rMESA9efd4851d224: nvir/spirv: Ensure to load imm first when generating CVT
Branches
Unknown
Tags
Unknown