drisw_priv.h revision af69d88d
1af69d88dSmrg/* This file was derived from drisw_glx.c which carries the following 2af69d88dSmrg * copyright: 3af69d88dSmrg * 4af69d88dSmrg * Copyright 2008 George Sapountzis 5af69d88dSmrg * 6af69d88dSmrg * Permission is hereby granted, free of charge, to any person obtaining a 7af69d88dSmrg * copy of this software and associated documentation files (the "Software"), 8af69d88dSmrg * to deal in the Software without restriction, including without limitation 9af69d88dSmrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 10af69d88dSmrg * and/or sell copies of the Software, and to permit persons to whom the 11af69d88dSmrg * Software is furnished to do so, subject to the following conditions: 12af69d88dSmrg * 13af69d88dSmrg * The above copyright notice and this permission notice (including the next 14af69d88dSmrg * paragraph) shall be included in all copies or substantial portions of the 15af69d88dSmrg * Software. 16af69d88dSmrg * 17af69d88dSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18af69d88dSmrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19af69d88dSmrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20af69d88dSmrg * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21af69d88dSmrg * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22af69d88dSmrg * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 23af69d88dSmrg * SOFTWARE. 24af69d88dSmrg */ 25af69d88dSmrg 26af69d88dSmrgstruct drisw_display 27af69d88dSmrg{ 28af69d88dSmrg __GLXDRIdisplay base; 29af69d88dSmrg}; 30af69d88dSmrg 31af69d88dSmrgstruct drisw_context 32af69d88dSmrg{ 33af69d88dSmrg struct glx_context base; 34af69d88dSmrg __DRIcontext *driContext; 35af69d88dSmrg 36af69d88dSmrg}; 37af69d88dSmrg 38af69d88dSmrgstruct drisw_screen 39af69d88dSmrg{ 40af69d88dSmrg struct glx_screen base; 41af69d88dSmrg 42af69d88dSmrg __DRIscreen *driScreen; 43af69d88dSmrg __GLXDRIscreen vtable; 44af69d88dSmrg const __DRIcoreExtension *core; 45af69d88dSmrg const __DRIswrastExtension *swrast; 46af69d88dSmrg const __DRItexBufferExtension *texBuffer; 47af69d88dSmrg const __DRIcopySubBufferExtension *copySubBuffer; 48af69d88dSmrg const __DRI2rendererQueryExtension *rendererQuery; 49af69d88dSmrg 50af69d88dSmrg const __DRIconfig **driver_configs; 51af69d88dSmrg 52af69d88dSmrg void *driver; 53af69d88dSmrg}; 54af69d88dSmrg 55af69d88dSmrgstruct drisw_drawable 56af69d88dSmrg{ 57af69d88dSmrg __GLXDRIdrawable base; 58af69d88dSmrg 59af69d88dSmrg GC gc; 60af69d88dSmrg GC swapgc; 61af69d88dSmrg 62af69d88dSmrg __DRIdrawable *driDrawable; 63af69d88dSmrg XVisualInfo *visinfo; 64af69d88dSmrg XImage *ximage; 65af69d88dSmrg}; 66af69d88dSmrg 67af69d88dSmrg_X_HIDDEN int 68af69d88dSmrgdrisw_query_renderer_integer(struct glx_screen *base, int attribute, 69af69d88dSmrg unsigned int *value); 70af69d88dSmrg_X_HIDDEN int 71af69d88dSmrgdrisw_query_renderer_string(struct glx_screen *base, int attribute, 72af69d88dSmrg const char **value); 73