14a49301eSmrg/**************************************************************************
24a49301eSmrg *
3af69d88dSmrg * Copyright 2007 VMware, Inc.
44a49301eSmrg * All Rights Reserved.
54a49301eSmrg *
64a49301eSmrg * Permission is hereby granted, free of charge, to any person obtaining a
74a49301eSmrg * copy of this software and associated documentation files (the
84a49301eSmrg * "Software"), to deal in the Software without restriction, including
94a49301eSmrg * without limitation the rights to use, copy, modify, merge, publish,
104a49301eSmrg * distribute, sub license, and/or sell copies of the Software, and to
114a49301eSmrg * permit persons to whom the Software is furnished to do so, subject to
124a49301eSmrg * the following conditions:
134a49301eSmrg *
144a49301eSmrg * The above copyright notice and this permission notice (including the
154a49301eSmrg * next paragraph) shall be included in all copies or substantial portions
164a49301eSmrg * of the Software.
174a49301eSmrg *
184a49301eSmrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
194a49301eSmrg * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
204a49301eSmrg * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
21af69d88dSmrg * IN NO EVENT SHALL VMWARE AND/OR ITS SUPPLIERS BE LIABLE FOR
224a49301eSmrg * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
234a49301eSmrg * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
244a49301eSmrg * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
254a49301eSmrg *
264a49301eSmrg **************************************************************************/
274a49301eSmrg
28af69d88dSmrg/* Authors:  Keith Whitwell <keithw@vmware.com>
294a49301eSmrg */
304a49301eSmrg
314a49301eSmrg#ifndef SP_SCREEN_H
324a49301eSmrg#define SP_SCREEN_H
334a49301eSmrg
344a49301eSmrg#include "pipe/p_screen.h"
354a49301eSmrg#include "pipe/p_defines.h"
364a49301eSmrg
374a49301eSmrg
383464ebd5Sriastradhstruct sw_winsys;
394a49301eSmrg
404a49301eSmrgstruct softpipe_screen {
414a49301eSmrg   struct pipe_screen base;
424a49301eSmrg
433464ebd5Sriastradh   struct sw_winsys *winsys;
443464ebd5Sriastradh
454a49301eSmrg   /* Increments whenever textures are modified.  Contexts can track
464a49301eSmrg    * this.
474a49301eSmrg    */
48af69d88dSmrg   unsigned timestamp;
49af69d88dSmrg   boolean use_llvm;
504a49301eSmrg};
514a49301eSmrg
5201e04c3fSmrgstatic inline struct softpipe_screen *
534a49301eSmrgsoftpipe_screen( struct pipe_screen *pipe )
544a49301eSmrg{
554a49301eSmrg   return (struct softpipe_screen *)pipe;
564a49301eSmrg}
574a49301eSmrg
587ec681f3Smrgenum sp_debug_flag {
597ec681f3Smrg   SP_DBG_VS              = BITFIELD_BIT(0),
607ec681f3Smrg   /* SP_DBG_TCS             = BITFIELD_BIT(1), */
617ec681f3Smrg   /* SP_DBG_TES             = BITFIELD_BIT(2), */
627ec681f3Smrg   SP_DBG_GS              = BITFIELD_BIT(3),
637ec681f3Smrg   SP_DBG_FS              = BITFIELD_BIT(4),
647ec681f3Smrg   SP_DBG_CS              = BITFIELD_BIT(5),
657ec681f3Smrg   SP_DBG_USE_LLVM        = BITFIELD_BIT(6),
667ec681f3Smrg   SP_DBG_NO_RAST         = BITFIELD_BIT(7),
677ec681f3Smrg   SP_DBG_USE_TGSI        = BITFIELD_BIT(8),
687ec681f3Smrg};
694a49301eSmrg
707ec681f3Smrgextern int sp_debug;
713464ebd5Sriastradh
724a49301eSmrg#endif /* SP_SCREEN_H */
73