panvk: Fix buffer views

Instead of overwriting the BO map pointer, write into the BO map
pointer. Drp...  Also, drop an unnecessary & accessing
panvk_buffer_view::tex.

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14780>
This commit is contained in:
Jason Ekstrand 2022-09-16 21:46:09 -05:00 committed by Marge Bot
parent c63cb7f4d2
commit 42d60aa0bc

View file

@ -200,11 +200,11 @@ panvk_per_arch(CreateBufferView)(VkDevice _device,
unsigned bo_size = pan_size(SURFACE_WITH_STRIDE);
view->bo = panfrost_bo_create(pdev, bo_size, 0, "Texture descriptor");
pan_pack(&view->bo->ptr.cpu, SURFACE_WITH_STRIDE, cfg) {
pan_pack(view->bo->ptr.cpu, SURFACE_WITH_STRIDE, cfg) {
cfg.pointer = address;
}
pan_pack(&view->descs.tex, TEXTURE, cfg) {
pan_pack(view->descs.tex, TEXTURE, cfg) {
cfg.dimension = MALI_TEXTURE_DIMENSION_1D;
cfg.format = pdev->formats[view->fmt].hw;
cfg.width = view->elems;