• Dave Airlie's avatar
    dri_interface: add put shm image2 (v2) · db83a2b4
    Dave Airlie authored
    This adds a new interface to the swrast interface to fix an shm put image bug.
    
    The current code adds the x,y src offsets into the offset parameters,
    however if the x offset is > 0, and the put image copies up to the height
    of the image, this can trigger an X server validation check to fail and
    the renderering to get BadMatch.
    
    This patch fixes it to pass the x offset coord in as a src x.
    
    We cannot pass the Y coordinate due to the horrible code mangling the
    image w/h vs stride in swrastXPutImage.
    
    v2: drop srcx,y from api
    
    Cc: <mesa-stable@lists.freedesktop.org>
    Reviewed-by: Adam Jackson's avatarAdam Jackson <ajax@redhat.com>
    db83a2b4
Name
Last commit
Last update
..
CL Loading commit data...
D3D9 Loading commit data...
EGL Loading commit data...
GL Loading commit data...
GLES Loading commit data...
GLES2 Loading commit data...
GLES3 Loading commit data...
HaikuGL Loading commit data...
KHR Loading commit data...
c11 Loading commit data...
d3dadapter Loading commit data...
drm-uapi Loading commit data...
pci_ids Loading commit data...
vulkan Loading commit data...
c99_alloca.h Loading commit data...
c99_compat.h Loading commit data...
c99_math.h Loading commit data...
meson.build Loading commit data...
no_extern_c.h Loading commit data...