intel_buffers.h revision 6b9e31f3eb3dbe20cbc8493b963bbc6530e392c6
16b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell/**************************************************************************
26b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell *
36b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * Copyright 2006 Tungsten Graphics, Inc., Cedar Park, Texas.
46b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * All Rights Reserved.
56b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell *
66b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a
76b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * copy of this software and associated documentation files (the
86b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * "Software"), to deal in the Software without restriction, including
96b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * without limitation the rights to use, copy, modify, merge, publish,
106b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * distribute, sub license, and/or sell copies of the Software, and to
116b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * permit persons to whom the Software is furnished to do so, subject to
126b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * the following conditions:
136b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell *
146b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * The above copyright notice and this permission notice (including the
156b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * next paragraph) shall be included in all copies or substantial portions
166b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * of the Software.
176b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell *
186b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
196b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
206b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
216b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR
226b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
236b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
246b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
256b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell *
266b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell **************************************************************************/
276b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
286b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell#ifndef INTEL_BUFFERS_H
296b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell#define INTEL_BUFFERS_H
306b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
316b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
326b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellstruct intel_context;
336b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
346b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
356b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern GLboolean
366b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellintel_intersect_cliprects(drm_clip_rect_t * dest,
376b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell                          const drm_clip_rect_t * a,
386b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell                          const drm_clip_rect_t * b);
396b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
406b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern struct intel_region *intel_readbuf_region(struct intel_context *intel);
416b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
426b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern struct intel_region *intel_drawbuf_region(struct intel_context *intel);
436b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
446b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern void intelSwapBuffers(__DRIdrawablePrivate * dPriv);
456b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
466b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern void intelWindowMoved(struct intel_context *intel);
476b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
486b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern void intel_draw_buffer(GLcontext * ctx, struct gl_framebuffer *fb);
496b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
506b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern void intelInitBufferFuncs(struct dd_function_table *functions);
516b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
526b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwellextern void
536b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith WhitwellintelRotateWindow(struct intel_context *intel,
546b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell                  __DRIdrawablePrivate * dPriv, GLuint srcBuf);
556b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell
566b9e31f3eb3dbe20cbc8493b963bbc6530e392c6Keith Whitwell#endif /* INTEL_BUFFERS_H */
57