glx: Add an error message when a direct renderer's createScreen() routine fails
authorJon TURNEY <jon.turney@dronecode.org.uk>
Sat, 10 May 2014 10:04:44 +0000 (11:04 +0100)
committerJon TURNEY <jon.turney@dronecode.org.uk>
Wed, 18 Jun 2014 08:55:45 +0000 (09:55 +0100)
commit83821ece79011d21303058e30694dd3796d072f2
tree7716101fd2a9978a28416ff284383f88d53f5ec4
parent88b887faa9209a58d29c819e01f9ad37ebc99a36
glx: Add an error message when a direct renderer's createScreen() routine fails
because no matching fbConfigs or visuals could be found.

Nearly all the error cases in *createScreen() issue an error message to diagnose
the failure to initialize before branching to handle_error.  The few remaining
error cases which don't should probably do the same.

(At the moment, it seems this can be triggered in drisw with an X server which
reports definite values for MAX_PBUFFFER_(WIDTH|HEIGHT|SIZE), because those
attributes are checked for an exact match against 0.)

Signed-off-by: Jon TURNEY <jon.turney@dronecode.org.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glx/dri2_glx.c
src/glx/dri3_glx.c
src/glx/dri_glx.c
src/glx/drisw_glx.c