st/dri/sw: add get_image inline helper similar to put_image
authorGeorge Sapountzis <gsapountzis@gmail.com>
Wed, 2 Nov 2011 13:02:10 +0000 (15:02 +0200)
committerGeorge Sapountzis <gsapountzis@gmail.com>
Wed, 2 Nov 2011 15:07:59 +0000 (17:07 +0200)
commit0c425ac18c56ea3315fcb0fdeecfa3685a52f4ba
treee4550662cd4f9fa0c42c0660235056728a25098c
parent31156c07b0292e477fa0d1f11fe7a318b6eda254
st/dri/sw: add get_image inline helper similar to put_image

TODO: check if GetImage works with passing the pitch as width, similar to PutImage,
which avoids the extra copy, ala dri_sw_displaytarget_display() in src/gallium/winsys/sw/dri/dri_sw_winsys.c
src/gallium/state_trackers/dri/sw/drisw.c