Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 3.2k
    • Issues 3.2k
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1k
    • Merge requests 1k
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Merge requests
  • !3428

util: call bind_sampler_states before setting sampler_views

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Pierre-Eric Pelloux-Prayer requested to merge pepp/mesa:util_fix_util_compute_blit into master Jan 16, 2020
  • Overview 1
  • Commits 1
  • Pipelines 6
  • Changes 1

Fixes the following valgrind error:

Invalid read of size 16
   at 0x28F458A1: si_set_sampler_view_desc (in radeonsi_drv_video.so)
   by 0x28F4657E: si_set_sampler_views (in radeonsi_drv_video.so)
   by 0x28D62BF5: util_compute_blit (in radeonsi_drv_video.so)
   by 0x28D3A944: vlVaHandleVAProcPipelineParameterBufferType (in radeonsi_drv_video.so)
   by 0x28D34EE1: vlVaRenderPicture (in radeonsi_drv_video.so)
   by 0x4B2582B: vaRenderPicture (in libva.so.2.500.0)
 Address 0x18142a10 is 0 bytes inside a block of size 48 free'd
   at 0x48369AB: free (vg_replace_malloc.c:540)
   by 0x28D62D51: util_compute_blit (in radeonsi_drv_video.so)
   by 0x28D3A944: vlVaHandleVAProcPipelineParameterBufferType (in radeonsi_drv_video.so)
   by 0x28D34EE1: vlVaRenderPicture (in radeonsi_drv_video.so)
   by 0x4B2582B: vaRenderPicture (in libva.so.2.500.0)
 Block was alloc'd at
   at 0x4837B65: calloc (vg_replace_malloc.c:762)
   by 0x28EFB2EC: si_create_sampler_state (in radeonsi_drv_video.so)
   by 0x28D62C30: util_compute_blit (in radeonsi_drv_video.so)
   by 0x28D3A944: vlVaHandleVAProcPipelineParameterBufferType (in radeonsi_drv_video.so)
   by 0x28D34EE1: vlVaRenderPicture (in radeonsi_drv_video.so)
   by 0x4B2582B: vaRenderPicture (in libva.so.2.500.0)

Fixes: 69430d7e ("va: use a compute shader for the blit")

Closes: #2321 (closed)

cc @sonny

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: util_fix_util_compute_blit