diff options
author | Brian <[email protected]> | 2007-11-06 15:19:36 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2007-11-06 15:22:56 -0700 |
commit | 2b0d1b6eda6b2a6c2df66a1e1a0dfd3aa762ece5 (patch) | |
tree | 5a27bcae92ea086b9eb3fd660cdf70886e1eb350 | |
parent | 3470d819fd7e3d3dd259d6fb2d4b963a514f0520 (diff) |
Update xmesa_is_format_supported()
-rw-r--r-- | src/mesa/pipe/xlib/xm_winsys.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/pipe/xlib/xm_winsys.c b/src/mesa/pipe/xlib/xm_winsys.c index 5763a4e53ff..35e485390a3 100644 --- a/src/mesa/pipe/xlib/xm_winsys.c +++ b/src/mesa/pipe/xlib/xm_winsys.c @@ -347,10 +347,17 @@ xmesa_get_pipe_winsys(void) static boolean xmesa_is_format_supported(struct softpipe_winsys *sws, uint format) { + /* Any format supported by softpipe can be listed here. + * This query is not used for allocating window-system color buffers + * (which would depend on the screen depth/bpp). + */ switch (format) { case PIPE_FORMAT_U_A8_R8_G8_B8: case PIPE_FORMAT_S_R16_G16_B16_A16: case PIPE_FORMAT_S8_Z24: + case PIPE_FORMAT_U_S8: + case PIPE_FORMAT_U_Z16: + case PIPE_FORMAT_U_Z32: return TRUE; default: return FALSE; |