1 /* Render (non-compute) states must be first. */
2 ST_STATE(ST_NEW_DSA
, st_update_depth_stencil_alpha
)
3 ST_STATE(ST_NEW_CLIP_STATE
, st_update_clip
)
5 ST_STATE(ST_NEW_FS_STATE
, st_update_fp
)
6 ST_STATE(ST_NEW_GS_STATE
, st_update_gp
)
7 ST_STATE(ST_NEW_TES_STATE
, st_update_tep
)
8 ST_STATE(ST_NEW_TCS_STATE
, st_update_tcp
)
9 ST_STATE(ST_NEW_VS_STATE
, st_update_vp
)
11 ST_STATE(ST_NEW_POLY_STIPPLE
, st_update_polygon_stipple
)
12 ST_STATE(ST_NEW_WINDOW_RECTANGLES
, st_update_window_rectangles
)
13 ST_STATE(ST_NEW_BLEND
, st_update_blend
)
14 ST_STATE(ST_NEW_BLEND_COLOR
, st_update_blend_color
)
16 ST_STATE(ST_NEW_VS_SAMPLER_VIEWS
, st_update_vertex_textures
)
17 ST_STATE(ST_NEW_FS_SAMPLER_VIEWS
, st_update_fragment_textures
)
18 ST_STATE(ST_NEW_GS_SAMPLER_VIEWS
, st_update_geometry_textures
)
19 ST_STATE(ST_NEW_TCS_SAMPLER_VIEWS
, st_update_tessctrl_textures
)
20 ST_STATE(ST_NEW_TES_SAMPLER_VIEWS
, st_update_tesseval_textures
)
22 /* Non-compute samplers. */
23 ST_STATE(ST_NEW_VS_SAMPLERS
, st_update_vertex_samplers
) /* depends on update_*_texture for swizzle */
24 ST_STATE(ST_NEW_TCS_SAMPLERS
, st_update_tessctrl_samplers
) /* depends on update_*_texture for swizzle */
25 ST_STATE(ST_NEW_TES_SAMPLERS
, st_update_tesseval_samplers
) /* depends on update_*_texture for swizzle */
26 ST_STATE(ST_NEW_GS_SAMPLERS
, st_update_geometry_samplers
) /* depends on update_*_texture for swizzle */
27 ST_STATE(ST_NEW_FS_SAMPLERS
, st_update_fragment_samplers
) /* depends on update_*_texture for swizzle */
29 ST_STATE(ST_NEW_VS_IMAGES
, st_bind_vs_images
)
30 ST_STATE(ST_NEW_TCS_IMAGES
, st_bind_tcs_images
)
31 ST_STATE(ST_NEW_TES_IMAGES
, st_bind_tes_images
)
32 ST_STATE(ST_NEW_GS_IMAGES
, st_bind_gs_images
)
33 ST_STATE(ST_NEW_FS_IMAGES
, st_bind_fs_images
)
35 ST_STATE(ST_NEW_FB_STATE
, st_update_framebuffer_state
) /* depends on update_*_texture and bind_*_images */
36 ST_STATE(ST_NEW_RASTERIZER
, st_update_rasterizer
) /* depends on update_framebuffer_state */
37 ST_STATE(ST_NEW_SAMPLE_MASK
, st_update_sample_mask
) /* depends on update_framebuffer_state */
38 ST_STATE(ST_NEW_SAMPLE_SHADING
, st_update_sample_shading
)
39 ST_STATE(ST_NEW_SCISSOR
, st_update_scissor
) /* depends on update_framebuffer_state */
40 ST_STATE(ST_NEW_VIEWPORT
, st_update_viewport
) /* depends on update_framebuffer_state */
42 ST_STATE(ST_NEW_VS_CONSTANTS
, st_update_vs_constants
)
43 ST_STATE(ST_NEW_TCS_CONSTANTS
, st_update_tcs_constants
)
44 ST_STATE(ST_NEW_TES_CONSTANTS
, st_update_tes_constants
)
45 ST_STATE(ST_NEW_GS_CONSTANTS
, st_update_gs_constants
)
46 ST_STATE(ST_NEW_FS_CONSTANTS
, st_update_fs_constants
)
48 ST_STATE(ST_NEW_VS_UBOS
, st_bind_vs_ubos
)
49 ST_STATE(ST_NEW_TCS_UBOS
, st_bind_tcs_ubos
)
50 ST_STATE(ST_NEW_TES_UBOS
, st_bind_tes_ubos
)
51 ST_STATE(ST_NEW_FS_UBOS
, st_bind_fs_ubos
)
52 ST_STATE(ST_NEW_GS_UBOS
, st_bind_gs_ubos
)
54 ST_STATE(ST_NEW_VS_ATOMICS
, st_bind_vs_atomics
)
55 ST_STATE(ST_NEW_TCS_ATOMICS
, st_bind_tcs_atomics
)
56 ST_STATE(ST_NEW_TES_ATOMICS
, st_bind_tes_atomics
)
57 ST_STATE(ST_NEW_FS_ATOMICS
, st_bind_fs_atomics
)
58 ST_STATE(ST_NEW_GS_ATOMICS
, st_bind_gs_atomics
)
60 ST_STATE(ST_NEW_VS_SSBOS
, st_bind_vs_ssbos
)
61 ST_STATE(ST_NEW_TCS_SSBOS
, st_bind_tcs_ssbos
)
62 ST_STATE(ST_NEW_TES_SSBOS
, st_bind_tes_ssbos
)
63 ST_STATE(ST_NEW_FS_SSBOS
, st_bind_fs_ssbos
)
64 ST_STATE(ST_NEW_GS_SSBOS
, st_bind_gs_ssbos
)
66 ST_STATE(ST_NEW_PIXEL_TRANSFER
, st_update_pixel_transfer
)
67 ST_STATE(ST_NEW_TESS_STATE
, st_update_tess
)
69 /* this must be done after the vertex program update */
70 ST_STATE(ST_NEW_VERTEX_ARRAYS
, st_update_array
)
72 /* Compute states must be last. */
73 ST_STATE(ST_NEW_CS_STATE
, st_update_cp
)
74 ST_STATE(ST_NEW_CS_SAMPLER_VIEWS
, st_update_compute_textures
)
75 ST_STATE(ST_NEW_CS_SAMPLERS
, st_update_compute_samplers
) /* depends on update_compute_texture for swizzle */
76 ST_STATE(ST_NEW_CS_CONSTANTS
, st_update_cs_constants
)
77 ST_STATE(ST_NEW_CS_UBOS
, st_bind_cs_ubos
)
78 ST_STATE(ST_NEW_CS_ATOMICS
, st_bind_cs_atomics
)
79 ST_STATE(ST_NEW_CS_SSBOS
, st_bind_cs_ssbos
)
80 ST_STATE(ST_NEW_CS_IMAGES
, st_bind_cs_images
)