OSDN Git Service

gallium: use put image shm2 path (v2)
authorDave Airlie <airlied@redhat.com>
Thu, 27 Dec 2018 04:26:49 +0000 (14:26 +1000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 29 Jan 2019 17:44:27 +0000 (17:44 +0000)
commitfea0bca1be5eba8eb85a2d77eb1894c91baadad9
treed38d7a56bf3c4125648252c523be6aef102403ab
parent32c0f59c48a77b4512105f4af8c9fabbabda9bcc
gallium: use put image shm2 path (v2)

This fixes the drisw paths to use the new shm2 interface, so that
we don't trigger the X server overflow checks when the x offset is non-zero.

This just hides the versioning in drisw, and either passes the src_x
or adds the offset fixup for the fallback path.

Cc: <mesa-stable@lists.freedesktop.org>
Reviewed-by: Adam Jackson <ajax@redhat.com>
(cherry picked from commit 1f6b92b47652e7f48f03ef6a4228a19537022d23)
src/gallium/include/state_tracker/drisw_api.h
src/gallium/state_trackers/dri/drisw.c
src/gallium/winsys/sw/dri/dri_sw_winsys.c