mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-04 20:38:06 +02:00
intel: Add safety asserts for the blit engine's pitch alignment requirements.
Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
ac6a376f52
commit
a1488eec38
1 changed files with 6 additions and 0 deletions
|
|
@ -146,6 +146,12 @@ intelEmitCopyBlit(struct intel_context *intel,
|
|||
src_pitch *= cpp;
|
||||
dst_pitch *= cpp;
|
||||
|
||||
/* Blit pitch must be dword-aligned. Otherwise, the hardware appears to drop
|
||||
* the low bits.
|
||||
*/
|
||||
assert(src_pitch % 4 == 0);
|
||||
assert(dst_pitch % 4 == 0);
|
||||
|
||||
/* For big formats (such as floating point), do the copy using 32bpp and
|
||||
* multiply the coordinates.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue