/* This file was derived from drisw_glx.c which carries the following1* copyright:2*3* Copyright 2008 George Sapountzis4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the "Software"),7* to deal in the Software without restriction, including without limitation8* the rights to use, copy, modify, merge, publish, distribute, sublicense,9* and/or sell copies of the Software, and to permit persons to whom the10* Software is furnished to do so, subject to the following conditions:11*12* The above copyright notice and this permission notice (including the next13* paragraph) shall be included in all copies or substantial portions of the14* Software.15*16* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR17* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,18* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL19* THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER20* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,21* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE22* SOFTWARE.23*/2425#ifndef DRISW_PRIV_H26#define DRISW_PRIV_H2728#include <X11/extensions/XShm.h>2930struct drisw_display31{32__GLXDRIdisplay base;33};3435struct drisw_context36{37struct glx_context base;38__DRIcontext *driContext;3940};4142struct drisw_screen43{44struct glx_screen base;4546__DRIscreen *driScreen;47__GLXDRIscreen vtable;48const __DRIcoreExtension *core;49const __DRIswrastExtension *swrast;50const __DRItexBufferExtension *texBuffer;51const __DRIcopySubBufferExtension *copySubBuffer;52const __DRI2rendererQueryExtension *rendererQuery;5354const __DRIconfig **driver_configs;5556void *driver;57};5859struct drisw_drawable60{61__GLXDRIdrawable base;6263GC gc;64__DRIdrawable *driDrawable;65struct glx_config *config;66XImage *ximage;67XShmSegmentInfo shminfo;68int xDepth;69};7071_X_HIDDEN int72drisw_query_renderer_integer(struct glx_screen *base, int attribute,73unsigned int *value);74_X_HIDDEN int75drisw_query_renderer_string(struct glx_screen *base, int attribute,76const char **value);7778#endif798081