Bug 2263

Summary: Asset failure in via_context.c with full screen window
Product: Mesa Reporter: Chris Audley <chris>
Component: Drivers/DRI/UnichromeAssignee: Default DRI bug account <dri-devel>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

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.