Path: blob/21.2-virgl/src/gallium/drivers/softpipe/sp_screen.h
4570 views
/**************************************************************************1*2* Copyright 2007 VMware, Inc.3* All Rights Reserved.4*5* Permission is hereby granted, free of charge, to any person obtaining a6* copy of this software and associated documentation files (the7* "Software"), to deal in the Software without restriction, including8* without limitation the rights to use, copy, modify, merge, publish,9* distribute, sub license, and/or sell copies of the Software, and to10* permit persons to whom the Software is furnished to do so, subject to11* the following conditions:12*13* The above copyright notice and this permission notice (including the14* next paragraph) shall be included in all copies or substantial portions15* of the Software.16*17* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS18* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF19* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.20* IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR21* ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,22* TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE23* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.24*25**************************************************************************/2627/* Authors: Keith Whitwell <[email protected]>28*/2930#ifndef SP_SCREEN_H31#define SP_SCREEN_H3233#include "pipe/p_screen.h"34#include "pipe/p_defines.h"353637struct sw_winsys;3839struct softpipe_screen {40struct pipe_screen base;4142struct sw_winsys *winsys;4344/* Increments whenever textures are modified. Contexts can track45* this.46*/47unsigned timestamp;48boolean use_llvm;49};5051static inline struct softpipe_screen *52softpipe_screen( struct pipe_screen *pipe )53{54return (struct softpipe_screen *)pipe;55}5657enum sp_debug_flag {58SP_DBG_VS = BITFIELD_BIT(0),59/* SP_DBG_TCS = BITFIELD_BIT(1), */60/* SP_DBG_TES = BITFIELD_BIT(2), */61SP_DBG_GS = BITFIELD_BIT(3),62SP_DBG_FS = BITFIELD_BIT(4),63SP_DBG_CS = BITFIELD_BIT(5),64SP_DBG_USE_LLVM = BITFIELD_BIT(6),65SP_DBG_NO_RAST = BITFIELD_BIT(7),66SP_DBG_USE_TGSI = BITFIELD_BIT(8),67};6869extern int sp_debug;7071#endif /* SP_SCREEN_H */727374