summaryrefslogtreecommitdiff
path: root/glamor/glamor_priv.h
diff options
context:
space:
mode:
authorEric Anholt <eric@anholt.net>2015-11-05 14:47:42 -0800
committerEric Anholt <eric@anholt.net>2015-11-10 13:55:35 -0800
commitde959ec939b262cb1cb4c0b6146826e3092843f9 (patch)
treefe4344abd837f90f2163ae410236b0ad6ee2926c /glamor/glamor_priv.h
parent74be466d40080545117628c376cb59b696db33bc (diff)
glamor: Handle GL_OUT_OF_MEMORY when allocating texture images.
The spec allows general undefined behavior when GL_OOM is thrown. But if the driver happens to throw the error at this point, it probably means the pixmap was just too big, so we should delete that texture and have this pixmap fall back to software. Signed-off-by: Eric Anholt <eric@anholt.net> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Diffstat (limited to 'glamor/glamor_priv.h')
-rw-r--r--glamor/glamor_priv.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/glamor/glamor_priv.h b/glamor/glamor_priv.h
index f89d56d9e..a190e67b1 100644
--- a/glamor/glamor_priv.h
+++ b/glamor/glamor_priv.h
@@ -293,6 +293,9 @@ typedef struct glamor_screen_private {
ScreenPtr screen;
int dri3_enabled;
+ Bool suppress_gl_out_of_memory_logging;
+ Bool logged_any_fbo_allocation_failure;
+
/* xv */
GLint xv_prog;