17117f1b4Smrg/* 27117f1b4Smrg * (C) Copyright IBM Corporation 2002, 2004 37117f1b4Smrg * All Rights Reserved. 47117f1b4Smrg * 57117f1b4Smrg * Permission is hereby granted, free of charge, to any person obtaining a 67117f1b4Smrg * copy of this software and associated documentation files (the "Software"), 77117f1b4Smrg * to deal in the Software without restriction, including without limitation 87117f1b4Smrg * on the rights to use, copy, modify, merge, publish, distribute, sub 97117f1b4Smrg * license, and/or sell copies of the Software, and to permit persons to whom 107117f1b4Smrg * the Software is furnished to do so, subject to the following conditions: 117117f1b4Smrg * 127117f1b4Smrg * The above copyright notice and this permission notice (including the next 137117f1b4Smrg * paragraph) shall be included in all copies or substantial portions of the 147117f1b4Smrg * Software. 157117f1b4Smrg * 167117f1b4Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 177117f1b4Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 187117f1b4Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 197117f1b4Smrg * VA LINUX SYSTEM, IBM AND/OR THEIR SUPPLIERS BE LIABLE FOR ANY CLAIM, 207117f1b4Smrg * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR 217117f1b4Smrg * OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE 227117f1b4Smrg * USE OR OTHER DEALINGS IN THE SOFTWARE. 237117f1b4Smrg * 247117f1b4Smrg * Authors: 257117f1b4Smrg * Ian Romanick <idr@us.ibm.com> 267117f1b4Smrg */ 277117f1b4Smrg 287117f1b4Smrg#ifndef DRI_DEBUG_H 297117f1b4Smrg#define DRI_DEBUG_H 307117f1b4Smrg 31c1f859d4Smrg#include <GL/gl.h> 32c1f859d4Smrg#include <GL/internal/dri_interface.h> 33c1f859d4Smrg#include "main/context.h" 347117f1b4Smrg 357117f1b4Smrgextern unsigned driGetRendererString( char * buffer, 363464ebd5Sriastradh const char * hardware_name, GLuint agp_mode ); 377117f1b4Smrg 38c1f859d4Smrgstruct __DRIconfigRec { 393464ebd5Sriastradh struct gl_config modes; 40c1f859d4Smrg}; 41c1f859d4Smrg 42c1f859d4Smrgextern __DRIconfig ** 43af69d88dSmrgdriCreateConfigs(mesa_format format, 44c1f859d4Smrg const uint8_t * depth_bits, const uint8_t * stencil_bits, 45c1f859d4Smrg unsigned num_depth_stencil_bits, 464a49301eSmrg const GLenum * db_modes, unsigned num_db_modes, 47cdc920a0Smrg const uint8_t * msaa_samples, unsigned num_msaa_modes, 487ec681f3Smrg GLboolean enable_accum, GLboolean color_depth_match); 49c1f859d4Smrg 504a49301eSmrg__DRIconfig **driConcatConfigs(__DRIconfig **a, 514a49301eSmrg __DRIconfig **b); 52c1f859d4Smrg 53c1f859d4Smrgint 54c1f859d4SmrgdriGetConfigAttrib(const __DRIconfig *config, 55c1f859d4Smrg unsigned int attrib, unsigned int *value); 56c1f859d4Smrgint 57c1f859d4SmrgdriIndexConfigAttrib(const __DRIconfig *config, int index, 58c1f859d4Smrg unsigned int *attrib, unsigned int *value); 597117f1b4Smrg 60af69d88dSmrgint 61af69d88dSmrgdriQueryRendererIntegerCommon(__DRIscreen *psp, int param, unsigned int *value); 62af69d88dSmrg 637117f1b4Smrg#endif /* DRI_DEBUG_H */ 64