mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 03:08:05 +02:00
anv/blorp: Explicitly set row_pitch in do_buffer_copy
We have a very specific row pitch that we want and we don't want ISL to
be changing it on us so just be explicit about it.
Fixes: a40f043034
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
parent
fd199fe4a8
commit
cf39fb06e3
1 changed files with 1 additions and 1 deletions
|
|
@ -564,10 +564,10 @@ do_buffer_copy(struct blorp_batch *batch,
|
|||
.levels = 1,
|
||||
.array_len = 1,
|
||||
.samples = 1,
|
||||
.row_pitch = width * block_size,
|
||||
.usage = ISL_SURF_USAGE_TEXTURE_BIT |
|
||||
ISL_SURF_USAGE_RENDER_TARGET_BIT,
|
||||
.tiling_flags = ISL_TILING_LINEAR_BIT);
|
||||
assert(surf.row_pitch == width * block_size);
|
||||
|
||||
struct blorp_surf src_blorp_surf = {
|
||||
.surf = &surf,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue