asahi: fix size calculation for 2d msaa arrays
otherwise the hw can overprefetch. fixes KHR-GL42.shader_image_load_store.basic-allTargets-load-ms Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26614>
This commit is contained in:
@@ -1294,7 +1294,9 @@ agx_batch_upload_pbe(struct agx_batch *batch, struct agx_pbe_packed *out,
|
||||
* image_write_block instructions.
|
||||
*/
|
||||
unsigned blocksize_B = util_format_get_blocksize(view->format);
|
||||
unsigned size_px = tex->layout.size_B / blocksize_B;
|
||||
unsigned size_px =
|
||||
(tex->layout.size_B - tex->layout.layer_stride_B * layer) /
|
||||
blocksize_B;
|
||||
|
||||
cfg.dimension = AGX_TEXTURE_DIMENSION_2D;
|
||||
cfg.layout = AGX_LAYOUT_LINEAR;
|
||||
|
||||
Reference in New Issue
Block a user