brw_state.h revision b922999a404322a1034c4f96c21acae860483bb0
15821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/*
25821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) Copyright (C) Intel Corp.  2006.  All Rights Reserved.
35821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) Intel funded Tungsten Graphics (http://www.tungstengraphics.com) to
45821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) develop this 3D driver.
55821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
65821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) Permission is hereby granted, free of charge, to any person obtaining
72a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) a copy of this software and associated documentation files (the
85821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) "Software"), to deal in the Software without restriction, including
95821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) without limitation the rights to use, copy, modify, merge, publish,
105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) distribute, sublicense, and/or sell copies of the Software, and to
115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) permit persons to whom the Software is furnished to do so, subject to
125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) the following conditions:
132a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)
145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) The above copyright notice and this permission notice (including the
155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) next paragraph) shall be included in all copies or substantial
165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) portions of the Software.
17868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)
185821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
192a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles) EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) IN NO EVENT SHALL THE COPYRIGHT OWNER(S) AND/OR ITS SUPPLIERS BE
225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) **********************************************************************/
275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) /*
285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  * Authors:
295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  *   Keith Whitwell <keith@tungstengraphics.com>
305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)  */
315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifndef BRW_STATE_H
345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#define BRW_STATE_H
355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#include "brw_context.h"
375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#ifdef __cplusplus
395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern "C" {
405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)#endif
415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)enum intel_msaa_layout;
435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_blend_constant_color;
455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_cc_vp;
465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_cc_unit;
475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_clip_prog;
485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_clip_unit;
495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_vs_pull_constants;
505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_wm_pull_constants;
515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_constant_buffer;
525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_curbe_offsets;
535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_invariant_state;
545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_gs_prog;
555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_gs_unit;
565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_line_stipple;
572a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const struct brw_tracked_state brw_aa_line_parameters;
585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_pipelined_state_pointers;
595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_binding_table_pointers;
605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_depthbuffer;
615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_polygon_stipple_offset;
625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_polygon_stipple;
635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_program_parameters;
645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_recalculate_urb_fence;
655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_samplers;
66868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)extern const struct brw_tracked_state brw_sf_prog;
67868fa2fe829687343ffae624259930155e16dbd8Torne (Richard Coles)extern const struct brw_tracked_state brw_sf_unit;
685821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_sf_vp;
695821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_state_base_address;
705821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_urb_fence;
715821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_vertex_state;
725821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_vs_prog;
735821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_vs_ubo_surfaces;
745821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_vs_unit;
755821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_wm_input_sizes;
765821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_wm_prog;
775821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_renderbuffer_surfaces;
785821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_texture_surfaces;
795821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_wm_binding_table;
805821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_vs_binding_table;
815821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_wm_ubo_surfaces;
825821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_wm_unit;
835821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
845821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_psp_urb_cbs;
855821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
865821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_pipe_control;
875821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
885821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_drawing_rect;
895821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_indices;
905821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_vertices;
915821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state brw_index_buffer;
925821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_binding_table_pointers;
935821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_blend_state;
945821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_cc_state_pointers;
955821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_clip_state;
965821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_clip_vp;
975821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_color_calc_state;
985821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_depth_stencil_state;
995821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_gs_state;
1005821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_gs_binding_table;
1015821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_multisample_state;
1025821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_renderbuffer_surfaces;
1035821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_sampler_state;
104c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const struct brw_tracked_state gen6_scissor_state;
105c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const struct brw_tracked_state gen6_sol_indices;
1062a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const struct brw_tracked_state gen6_sol_surface;
107c2e0dbddbe15c98d52c4786dac06cb8952a8ae6dTorne (Richard Coles)extern const struct brw_tracked_state gen6_sf_state;
1085821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_sf_vp;
1095821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_urb;
1105821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_viewport_state;
1115821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_vs_push_constants;
1125821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_vs_state;
1135821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_wm_push_constants;
1145821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen6_wm_state;
1155821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_depthbuffer;
1165821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_blend_state_pointer;
1172a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const struct brw_tracked_state gen7_cc_state_pointer;
1182a99a7e74a7f215066514fe81d2bfa6639d9edddTorne (Richard Coles)extern const struct brw_tracked_state gen7_cc_viewport_state_pointer;
1195821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_clip_state;
1205821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_depth_stencil_state_pointer;
1215821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_disable_stages;
1225821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_ps_state;
1235821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_push_constant_alloc;
1245821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_samplers;
1255821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_sbe_state;
1265821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_sf_clip_viewport;
1275821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_sf_clip_viewport_state_pointer;
1285821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_sf_state;
1295821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_sol_state;
1305821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_urb;
1315821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_vs_state;
1325821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_wm_constants;
1335821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_wm_constant_surface;
1345821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_wm_state;
1355821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state gen7_wm_surfaces;
1365821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)extern const struct brw_tracked_state haswell_cut_index;
1375821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1385821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/* brw_misc_state.c */
1395821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)uint32_t
1405821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)brw_depthbuffer_format(struct brw_context *brw);
1415821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1425821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1435821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/***********************************************************************
1445821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * brw_state.c
1455821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) */
1465821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void brw_upload_state(struct brw_context *brw);
1475821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void brw_init_state(struct brw_context *brw);
1485821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void brw_destroy_state(struct brw_context *brw);
1495821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1505821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)/***********************************************************************
1515821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) * brw_state_cache.c
1525821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles) */
1535821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1545821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)void brw_upload_cache(struct brw_cache *cache,
1555821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      enum brw_cache_id cache_id,
1565821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      const void *key,
1575821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      GLuint key_sz,
1585821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      const void *data,
1595821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      GLuint data_sz,
1605821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      const void *aux,
1615821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      GLuint aux_sz,
1625821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      uint32_t *out_offset, void *out_aux);
1635821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)
1645821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)bool brw_search_cache(struct brw_cache *cache,
1655821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      enum brw_cache_id cache_id,
1665821806d5e7f356e8fa4b058a389a808ea183019Torne (Richard Coles)		      const void *key,
167		      GLuint key_size,
168		      uint32_t *inout_offset, void *out_aux);
169void brw_state_cache_check_size( struct brw_context *brw );
170
171void brw_init_caches( struct brw_context *brw );
172void brw_destroy_caches( struct brw_context *brw );
173
174/***********************************************************************
175 * brw_state_batch.c
176 */
177#define BRW_BATCH_STRUCT(brw, s) intel_batchbuffer_data(&brw->intel, (s), \
178							sizeof(*(s)), false)
179
180void *brw_state_batch(struct brw_context *brw,
181		      enum state_struct_type type,
182		      int size,
183		      int alignment,
184		      uint32_t *out_offset);
185
186/* brw_wm_surface_state.c */
187void gen4_init_vtable_surface_functions(struct brw_context *brw);
188uint32_t brw_get_surface_tiling_bits(uint32_t tiling);
189uint32_t brw_get_surface_num_multisamples(unsigned num_samples);
190void brw_create_constant_surface(struct brw_context *brw,
191				 drm_intel_bo *bo,
192				 uint32_t offset,
193				 int width,
194				 uint32_t *out_offset);
195
196uint32_t brw_format_for_mesa_format(gl_format mesa_format);
197
198GLuint translate_tex_target(GLenum target);
199
200GLuint translate_tex_format(gl_format mesa_format,
201			    GLenum internal_format,
202			    GLenum depth_mode,
203			    GLenum srgb_decode);
204
205/* gen7_wm_surface_state.c */
206void gen7_set_surface_tiling(struct gen7_surface_state *surf, uint32_t tiling);
207void gen7_set_surface_msaa(struct gen7_surface_state *surf,
208                           unsigned num_samples,
209                           enum intel_msaa_layout layout);
210void gen7_set_surface_mcs_info(struct brw_context *brw,
211                               struct gen7_surface_state *surf,
212                               uint32_t surf_offset,
213                               const struct intel_mipmap_tree *mcs_mt,
214                               bool is_render_target);
215void gen7_check_surface_setup(struct gen7_surface_state *surf,
216                              bool is_render_target);
217void gen7_init_vtable_surface_functions(struct brw_context *brw);
218void gen7_create_constant_surface(struct brw_context *brw,
219				  drm_intel_bo *bo,
220				  uint32_t offset,
221				  int width,
222				  uint32_t *out_offset);
223
224/* brw_wm_sampler_state.c */
225uint32_t translate_wrap_mode(GLenum wrap, bool using_nearest);
226void upload_default_color(struct brw_context *brw,
227			  struct gl_sampler_object *sampler,
228			  int unit, int ss_index);
229
230/* gen6_sf_state.c */
231uint32_t
232get_attr_override(struct brw_vue_map *vue_map, int urb_entry_read_offset,
233                  int fs_attr, bool two_side_color);
234
235#ifdef __cplusplus
236}
237#endif
238
239#endif
240