summaryrefslogtreecommitdiff
path: root/src/mesa/state_tracker/st_context.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2007-10-18 15:18:55 -0600
committerBrian <brian.paul@tungstengraphics.com>2007-10-18 15:18:55 -0600
commit0007cd7ba0a61fcbcf9c9d19e014408be25ae496 (patch)
tree37199fc1c03f0c29cadc7072276113f5101d939d /src/mesa/state_tracker/st_context.h
parent5d39f4f9fdba4cd3333a39af583a73b85eb6bb74 (diff)
Alternate CopyPixels path based on get/put_tile().
For some drivers (like Xlib) it's not possible to treat the front/back color buffers as pipe_regions. So pipe->region_copy() won't work. Added a new state tracker field indicating if we can use regions for colorbuffer accesses. This should probably be re-considered someday...
Diffstat (limited to 'src/mesa/state_tracker/st_context.h')
-rw-r--r--src/mesa/state_tracker/st_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/state_tracker/st_context.h b/src/mesa/state_tracker/st_context.h
index b4ae041d36..bacc0b9b3f 100644
--- a/src/mesa/state_tracker/st_context.h
+++ b/src/mesa/state_tracker/st_context.h
@@ -111,6 +111,12 @@ struct st_context
char vendor[100];
char renderer[100];
+ /** Can we access the front/back color buffers as pipe_regions?
+ * We can't with the Xlib driver...
+ * This is a hack that should be fixed someday.
+ */
+ GLboolean haveFramebufferRegions;
+
/* State to be validated:
*/
struct st_tracked_state **atoms;