101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell/************************************************************************** 201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * Copyright 2007 Tungsten Graphics, Inc., Cedar Park, Texas. 401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * All Rights Reserved. 501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * Permission is hereby granted, free of charge, to any person obtaining a 701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * copy of this software and associated documentation files (the 801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * "Software"), to deal in the Software without restriction, including 901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * without limitation the rights to use, copy, modify, merge, publish, 1001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * distribute, sub license, and/or sell copies of the Software, and to 1101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * permit persons to whom the Software is furnished to do so, subject to 1201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * the following conditions: 1301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 1401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * The above copyright notice and this permission notice (including the 1501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * next paragraph) shall be included in all copies or substantial portions 1601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * of the Software. 1701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 1801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 1901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 2001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. 2101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * IN NO EVENT SHALL TUNGSTEN GRAPHICS AND/OR ITS SUPPLIERS BE LIABLE FOR 2201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 2301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 2401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 2501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell * 2601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell **************************************************************************/ 2701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 2801c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell/* Authors: Keith Whitwell <keith@tungstengraphics.com> 2901c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell */ 3001c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 3101c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#ifndef I915_STATE_H 3201c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#define I915_STATE_H 3301c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 3401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwellstruct i915_context; 3501c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 367c9a1357beabd6d0df88142d31cd5d77a012e85aKeith Whitwell 377c9a1357beabd6d0df88142d31cd5d77a012e85aKeith Whitwellstruct i915_tracked_state { 38e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantz const char *name; 39e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantz void (*update)(struct i915_context *); 407c9a1357beabd6d0df88142d31cd5d77a012e85aKeith Whitwell unsigned dirty; 417c9a1357beabd6d0df88142d31cd5d77a012e85aKeith Whitwell}; 427c9a1357beabd6d0df88142d31cd5d77a012e85aKeith Whitwell 43e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzextern struct i915_tracked_state i915_update_vertex_layout; 4401c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 45e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzextern struct i915_tracked_state i915_hw_samplers; 46e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzextern struct i915_tracked_state i915_hw_sampler_views; 47e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzextern struct i915_tracked_state i915_hw_immediate; 48e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzextern struct i915_tracked_state i915_hw_dynamic; 49e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzextern struct i915_tracked_state i915_hw_fs; 50e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzextern struct i915_tracked_state i915_hw_framebuffer; 5111ee41fe7f72f7136b531f0c51f820e90a610a79Daniel Vetterextern struct i915_tracked_state i915_hw_dst_buf_vars; 528b122bdf6c0ba3bd77ff6f5b85b7fa84865535dbJakob Bornecrantzextern struct i915_tracked_state i915_hw_constants; 53e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantz 54e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzvoid i915_update_derived(struct i915_context *i915); 55e694f3fd4865f7e85cf1d4c9fe5789fad399dbc6Jakob Bornecrantzvoid i915_emit_hardware_state(struct i915_context *i915); 5601c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell 5701c35b52a1fccbe4253a96b9c0506ef6c991e44fKeith Whitwell#endif 58