Bug 21997 - [gallium-mesa-7.4] Add tex_transfer to pipe_screen in order to speed up glreadpixels
Summary: [gallium-mesa-7.4] Add tex_transfer to pipe_screen in order to speed up glrea...
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Other (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-29 11:00 UTC by Yu Dai
Modified: 2010-03-27 12:52 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
patch to enable pipe_transfer (13.53 KB, text/plain)
2009-05-29 11:08 UTC, Yu Dai
Details
Add code to faster glreadpixels if pbo is used (6.29 KB, text/plain)
2009-06-04 13:31 UTC, Yu Dai
Details

Description Yu Dai 2009-05-29 11:00:26 UTC
In the case video memory is in non-linear layout, calling get_tex_surface will result in a whole buffer data conversion no matter glreadpixels only wants data in a sub-rect. The attached code is trying to port pipe_transfer into gallium-mesa-7.4 branch in order to speed up glreadpixels.
Comment 1 Yu Dai 2009-05-29 11:08:27 UTC
Created attachment 26292 [details]
patch to enable pipe_transfer
Comment 2 Yu Dai 2009-06-04 13:31:20 UTC
Created attachment 26443 [details]
Add code to faster glreadpixels if pbo is used

This is to faster glreadpixels when pbo is bound to frame buffer. The path is on top of previous one.
Comment 3 Alan Hourihane 2009-06-15 08:01:26 UTC
Alex,

I've added this to the gallium-mesa-7.4 branch for now, but it could use with updating so we can get this onto master for future use.

Submitting patches for master to this bug would be good.

Thanks.
Comment 4 Corbin Simpson 2010-03-27 12:52:51 UTC
Closing. We've reworked transfers, and things seem to work well.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.