# vim:syntax=apparmor

  abi <abi/4.0>,

# OpenCL access requirements for Mesa implementation

  include <abstractions/opencl-common>

  # Additional libraries

  /usr/lib/@{multiarch}/gallium-pipe/*.so mr, # libMesaOpenCL.so
  /usr/lib{,64}/gallium-pipe/*.so mr, # libMesaOpenCL.so on openSUSE

  # System files

  /dev/dri/ r, # libMesaOpenCL.so -> libdrm.so
  /dev/dri/render* rw, # libMesaOpenCL.so
  /etc/drirc r, # libMesaOpenCL.so

  # User files

  owner @{HOME}/.cache/mesa_shader_cache/{,**} rw, # libMesaOpenCL.so -> pipe_nouveau.so


  # Include additions to the abstraction
  include if exists <abstractions/opencl-mesa.d>
