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