mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 05:08:08 +02:00
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:
parent
c63cb7f4d2
commit
42d60aa0bc
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue