summaryrefslogtreecommitdiffstats
path: root/tests/auto/gui/rhi
diff options
context:
space:
mode:
authorLaszlo Agocs <laszlo.agocs@qt.io>2019-10-07 10:12:48 +0200
committerLaszlo Agocs <laszlo.agocs@qt.io>2019-10-09 17:15:05 +0200
commit59604405c98cc8d55e924573859dd64d94d5d877 (patch)
tree5ac2dc9aa23389a5893be195b365ce05b1d3b550 /tests/auto/gui/rhi
parentdd105fab8d8b4bd39654e7e268e6782e53cce2de (diff)
rhi: Fix non-base level copy and readback wrt source size
When the source size is not explicitly specified, we take the entire subresource. However, just using the texture's size is wrong: when the source level in a copy or readback is not 0, the size for the corresponding mip level has to be used instead. This fixes occasional crashes with Metal in the autotest. Change-Id: I99f689feef93ec86dffdc9e82d6bfdaf5c1eb041 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'tests/auto/gui/rhi')
0 files changed, 0 insertions, 0 deletions