mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 08:58:02 +02:00
tu/kgsl: Remove unused variable
The offset variable declaration at the beginning of the function was left over after the variable was moved inside the if statement. Fixes:17c12a9924("turnip/kgsl: Support external memory via ION/DMABUF buffers") Signed-off-by: Valentine Burley <valentine.burley@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30300> (cherry picked from commit0a6cbb3a97)
This commit is contained in:
parent
b71c17e7f4
commit
67c16b59b2
2 changed files with 1 additions and 3 deletions
|
|
@ -844,7 +844,7 @@
|
|||
"description": "tu/kgsl: Remove unused variable",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "17c12a9924a0c6f0f52a66c92fe1bbd8886fc9b1",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -333,8 +333,6 @@ kgsl_bo_export_dmabuf(struct tu_device *dev, struct tu_bo *bo)
|
|||
static VkResult
|
||||
kgsl_bo_map(struct tu_device *dev, struct tu_bo *bo, void *placed_addr)
|
||||
{
|
||||
uint64_t offset = bo->gem_handle << 12;
|
||||
|
||||
void *map = MAP_FAILED;
|
||||
if (bo->shared_fd == -1) {
|
||||
uint64_t offset = bo->gem_handle << 12;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue