mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
i965: Add more stringent blitter assertions
Blits to or from a y-tiled surface must always be a multiple of the tile size. From page 16 of the HSW PRM (https://01.org/linuxgraphics/sites/default/files/documentation/intel-gfx-prm-osrc-hsw-memory-views.pdf#16) "The pitch of a tiled enclosing region must be an integral number of tile widths" Signed-off-by: Ben Widawsky <ben@bwidawsk.net> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
This commit is contained in:
parent
efde74c89d
commit
7ea1e37497
1 changed files with 3 additions and 0 deletions
|
|
@ -307,6 +307,9 @@ intelEmitCopyBlit(struct brw_context *brw,
|
|||
if ((dst_y_tiled || src_y_tiled) && brw->gen < 6)
|
||||
return false;
|
||||
|
||||
assert(!dst_y_tiled || (dst_pitch % 128) == 0);
|
||||
assert(!src_y_tiled || (src_pitch % 128) == 0);
|
||||
|
||||
/* do space check before going any further */
|
||||
do {
|
||||
aper_array[0] = brw->batch.bo;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue