mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-23 11:40:39 +02:00
i965: Check for miptree pitch alignment before using intel_miptree_map_movntdqa()
We have an assert() in intel_miptree_map_movntdqa() which expects the pitch to be 16 byte aligned. Signed-off-by: Anuj Phogat <anuj.phogat@gmail.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
84d27c32d2
commit
278460279b
1 changed files with 3 additions and 1 deletions
|
|
@ -2630,7 +2630,9 @@ intel_miptree_map(struct brw_context *brw,
|
|||
} else if (use_intel_mipree_map_blit(brw, mt, mode, level, slice)) {
|
||||
intel_miptree_map_blit(brw, mt, map, level, slice);
|
||||
#if defined(USE_SSE41)
|
||||
} else if (!(mode & GL_MAP_WRITE_BIT) && !mt->compressed && cpu_has_sse4_1) {
|
||||
} else if (!(mode & GL_MAP_WRITE_BIT) &&
|
||||
!mt->compressed && cpu_has_sse4_1 &&
|
||||
(mt->pitch % 16 == 0)) {
|
||||
intel_miptree_map_movntdqa(brw, mt, map, level, slice);
|
||||
#endif
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue