Bug 2263 - Asset failure in via_context.c with full screen window
Summary: Asset failure in via_context.c with full screen window
Status: RESOLVED FIXED
Alias: None
Product: Mesa
Classification: Unclassified
Component: Drivers/DRI/Unichrome (show other bugs)
Version: git
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Default DRI bug account
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-11 08:55 UTC by Chris Audley
Modified: 2009-08-24 12:22 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Chris Audley 2005-01-11 08:55:18 UTC
Using latest Mesa CVS with Unichrome DRI and Xorg 6.8.1, I'm getting this assert
failure if my application tries to open a window at the same size as the screen
resolution, or calls glutFullScreen().

via_context.c:218: calculate_buffer_parameters: Assertion `vmesa->back.pitch ==
vmesa->front.pitch' failed.

The following is enough to trigger it (with screen res at 800x600):
   
  glutInit(&argc, argv);
  glutInitWindowPosition(0, 0); 
  glutInitWindowSize( 800, 600);
  glutInitDisplayMode(GLUT_RGBA | GLUT_DOUBLE | GLUT_ALPHA);
  if (glutCreateWindow("test") == GL_FALSE) exit(1);

With 'glutInitWindowSize( 799, 599);' the asset doesn't fail.
Comment 1 Keith Whitwell 2005-01-11 09:08:19 UTC
This only matters for the experimental pageflipping code.
Moved the assert into a nearby #ifdef.
Comment 2 Adam Jackson 2009-08-24 12:22:59 UTC
Mass version move, cvs -> git


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.