17c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell/*
27c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Mesa 3-D graphics library
3a7008322146f589ed5cb7a563365ff5e31844c62Brian * Version:  7.1
45e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen *
5a7008322146f589ed5cb7a563365ff5e31844c62Brian * Copyright (C) 1999-2007  Brian Paul   All Rights Reserved.
65e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen *
77c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a
87c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * copy of this software and associated documentation files (the "Software"),
97c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * to deal in the Software without restriction, including without limitation
107c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * the rights to use, copy, modify, merge, publish, distribute, sublicense,
117c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * and/or sell copies of the Software, and to permit persons to whom the
127c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Software is furnished to do so, subject to the following conditions:
135e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen *
147c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * The above copyright notice and this permission notice shall be included
157c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * in all copies or substantial portions of the Software.
165e3bc0c2a2bcdf59949410f94c9b705fc1281ce8Jouk Jansen *
177c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
187c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
197c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
207c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
217c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
227c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
237c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell *
247c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell * Authors:
2505a4b37707d2c598ea68c05d07a3d65bcbf5a076Brian Paul *    Keith Whitwell <keith@tungstengraphics.com>
267c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell */
277c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell
287c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#ifndef SS_CONTEXT_H
297c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#define SS_CONTEXT_H
307c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell
318829e0c3f3d4a53d702eca91253b5194f1d94503Vinson Lee#include "main/glheader.h"
327c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#include "swrast/swrast.h"
33bb38cadb1c5f2dc13096a091bdaf61dc3e3cfa4dMichal Krol#include "tnl/t_context.h"
347c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell
357c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwelltypedef struct {
367c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell   GLuint NewState;
37d43a5943d8952367d9292653800b47a85f905343Keith Whitwell   GLenum render_prim;
38ccbf192f597186f6a4a04ed14391dba82ffee18bMathias Fröhlich   GLbitfield64 last_index_bitset;
39588225770c60834dfd2a95850435cc549167dc05Keith Whitwell   SWvertex *verts;
40a7008322146f589ed5cb7a563365ff5e31844c62Brian   GLboolean intColors;
41cab974cf6c2dbfbf5dd5d291e1aae0f8eeb34290Keith Whitwell} SScontext;
427c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell
437c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#define SWSETUP_CONTEXT(ctx) ((SScontext *)ctx->swsetup_context)
447c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell
457c20642b1091df1aab7d9076a3fe2fb11c6f011cKeith Whitwell#endif
46