Bug 43949 - OSMesa does not work with 565 pixel format
Summary: OSMesa does not work with 565 pixel format
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Mesa core (show other bugs)
Version: 7.11
Hardware: All All
: medium normal
Assignee: mesa-dev
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-19 05:22 UTC by Alex Galakhov
Modified: 2011-12-19 06:41 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix for 565 pixel format (654 bytes, patch)
2011-12-19 05:22 UTC, Alex Galakhov
Details | Splinter Review

Description Alex Galakhov 2011-12-19 05:22:13 UTC
Created attachment 54568 [details] [review]
Fix for 565 pixel format

The following code did not work due to forgotten case statement:

ctx = OSMesaCreateContext(OSMESA_RGB_565, NULL);
OSMesaMakeCurrent(ctx, fb, GL_UNSIGNED_SHORT_5_6_5, 800, 480);

The attached patch fixes the problem.
Comment 1 Brian Paul 2011-12-19 06:41:47 UTC
Thanks for finding that.  Patch committed as d334a0fb8cbb368c337858b16cb567a28a35f688


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.