/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_context.c | 77 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { in svga_destroy() 78 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.constbuf[0]); i++) { in svga_destroy() 79 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader][i], NULL); in svga_destroy() 266 memset(&svga->state.hw_draw, 0xcd, sizeof(svga->state.hw_draw)); in svga_context_create() 267 memset(&svga->state.hw_draw.views, 0x0, sizeof(svga->state.hw_draw.views)); in svga_context_create() 268 memset(&svga->state.hw_draw.num_samplers, 0, in svga_context_create() 269 sizeof(svga->state.hw_draw.num_samplers)); in svga_context_create() 270 memset(&svga->state.hw_draw.num_sampler_views, 0, in svga_context_create() 271 sizeof(svga->state.hw_draw.num_sampler_views)); in svga_context_create() 272 memset(svga->state.hw_draw.sampler_views, 0, in svga_context_create() [all …]
|
D | svga_state_rss.c | 50 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \ 51 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \ 53 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \ 60 STATIC_ASSERT(SVGA3D_RS_##token < ARRAY_SIZE(svga->state.hw_draw.rs)); \ 61 if (svga->state.hw_draw.rs[SVGA3D_RS_##token] != value) { \ 63 svga->state.hw_draw.rs[SVGA3D_RS_##token] = value; \ 304 memset(svga->state.hw_draw.rs, 0xcd, sizeof(svga->state.hw_draw.rs)); in emit_rss_vgpu9() 402 if (svga->state.hw_draw.blend_id != curr->id || in emit_rss_vgpu10() 403 svga->state.hw_draw.blend_factor[0] != blend_factor[0] || in emit_rss_vgpu10() 404 svga->state.hw_draw.blend_factor[1] != blend_factor[1] || in emit_rss_vgpu10() [all …]
|
D | svga_state_constants.c | 119 const struct svga_shader_variant *variant = svga->state.hw_draw.fs; in svga_get_extra_fs_constants() 202 const struct svga_shader_variant *variant = svga->state.hw_draw.vs; in svga_get_extra_vs_constants() 252 const struct svga_shader_variant *variant = svga->state.hw_draw.gs; in svga_get_extra_gs_constants() 302 const struct svga_shader_variant *variant = svga->state.hw_draw.tcs; in svga_get_extra_tcs_constants() 325 const struct svga_shader_variant *variant = svga->state.hw_draw.tes; in svga_get_extra_tes_constants() 353 const struct svga_shader_variant *variant = svga->state.hw_draw.cs; in svga_get_extra_cs_constants() 411 if (memcmp(svga->state.hw_draw.cb[shader][offset + i], in emit_const_range() 431 memcmp(svga->state.hw_draw.cb[shader][offset + j], in emit_const_range() 474 memcpy(svga->state.hw_draw.cb[shader][offset + i], in emit_const_range() 548 variant = svga->state.hw_draw.vs; in emit_consts_vgpu9() [all …]
|
D | svga_state_tss.c | 49 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.views); i++) { in svga_cleanup_tss_binding() 50 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i]; in svga_cleanup_tss_binding() 148 svga->state.hw_draw.num_views); in update_tss_binding() 160 &svga->state.hw_draw.views[i], in update_tss_binding() 165 svga->state.hw_draw.num_views = svga->curr.num_sampler_views[shader]; in update_tss_binding() 170 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit; in update_tss_binding() 174 &svga->state.hw_draw.views[unit], in update_tss_binding() 179 svga->state.hw_draw.num_backed_views = 0; in update_tss_binding() 202 svga->state.hw_draw.num_backed_views++; in update_tss_binding() 248 for (i = 0; i < svga->state.hw_draw.num_views; i++) { in svga_reemit_tss_bindings() [all …]
|
D | svga_state_sampler.c | 278 for (; i < svga->state.hw_draw.num_sampler_views[shader]; i++) { in update_sampler_resources() 287 nviews = MAX2(svga->state.hw_draw.num_sampler_views[shader], count); in update_sampler_resources() 289 if (count != svga->state.hw_draw.num_sampler_views[shader] || in update_sampler_resources() 290 memcmp(sampler_views, svga->state.hw_draw.sampler_views[shader], in update_sampler_resources() 305 svga->state.hw_draw.sampler_views[shader][i]; in update_sampler_resources() 342 svga->state.hw_draw.num_sampler_views[shader] = count; in update_sampler_resources() 345 &svga->state.hw_draw.sampler_views[shader][i], in update_sampler_resources() 355 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit; in update_sampler_resources() 410 svga_fs_variant(svga->state.hw_draw.fs); in update_samplers() 429 for (; i < svga->state.hw_draw.num_samplers[shader]; i++) { in update_samplers() [all …]
|
D | svga_draw.c | 211 if (svga->state.hw_draw.num_backed_views) { in draw_vgpu9() 212 for (i = 0; i < svga->state.hw_draw.num_views; i++) { in draw_vgpu9() 213 struct svga_hw_view_state *view = &svga->state.hw_draw.views[i]; in draw_vgpu9() 383 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit; in validate_sampler_resources() 425 buffer = svga_buffer(svga->state.hw_draw.constbuf[shader][0]); in validate_constant_buffers() 443 enabled_constbufs = svga->state.hw_draw.enabled_constbufs[shader] & ~1u; in validate_constant_buffers() 455 handle = svga->state.hw_draw.constbufoffsets[shader][i].handle; in validate_constant_buffers() 563 for (; i < svga->state.hw_draw.num_vbuffers; i++) { in validate_vertex_buffers() 588 for (; i < svga->state.hw_draw.num_vbuffers; i++) { in validate_vertex_buffers() 594 if (svga->state.hw_draw.layout_id != hwtnl->cmd.vdecl_layout_id) { in validate_vertex_buffers() [all …]
|
D | svga_state_ts.c | 86 struct svga_tes_variant *tes = svga_tes_variant(svga->state.hw_draw.tes); in make_tcs_key() 127 if (svga->state.hw_draw.tcs != NULL) { in emit_hw_tcs() 135 svga->state.hw_draw.tcs = NULL; in emit_hw_tcs() 156 if (variant != svga->state.hw_draw.tcs) { in emit_hw_tcs() 164 svga->state.hw_draw.tcs = variant; in emit_hw_tcs() 345 if (svga->state.hw_draw.tes != NULL) { in emit_hw_tes() 353 svga->state.hw_draw.tes = NULL; in emit_hw_tes() 386 if (variant != svga->state.hw_draw.tes) { in emit_hw_tes() 394 svga->state.hw_draw.tes = variant; in emit_hw_tes()
|
D | svga_state_fs.c | 387 if (!svga->state.hw_draw.fs) in svga_reemit_fs_bindings() 392 svga->state.hw_draw.fs->gb_shader, in svga_reemit_fs_bindings() 398 svga->state.hw_draw.fs->gb_shader, in svga_reemit_fs_bindings() 399 svga->state.hw_draw.fs->id); in svga_reemit_fs_bindings() 402 svga->state.hw_draw.fs->gb_shader); in svga_reemit_fs_bindings() 439 if (svga->state.hw_draw.fs) { in emit_hw_fs() 445 svga->state.hw_draw.fs = NULL; in emit_hw_fs() 471 if (variant != svga->state.hw_draw.fs) { in emit_hw_fs() 479 svga->state.hw_draw.fs = variant; in emit_hw_fs()
|
D | svga_pipe_vertex.c | 294 if (velems->id == svga->state.hw_draw.layout_id) in svga_delete_vertex_elements_state() 295 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID; in svga_delete_vertex_elements_state() 314 pipe_resource_reference(&svga->state.hw_draw.ib, NULL); in svga_cleanup_vertex_state() 316 for (i = 0; i < svga->state.hw_draw.num_vbuffers; i++) in svga_cleanup_vertex_state() 317 pipe_resource_reference(&svga->state.hw_draw.vbuffers[i], NULL); in svga_cleanup_vertex_state()
|
D | svga_state_gs.c | 160 if (svga->state.hw_draw.gs != NULL) { in emit_hw_gs() 168 svga->state.hw_draw.gs = NULL; in emit_hw_gs() 213 if (variant != svga->state.hw_draw.gs) { in emit_hw_gs() 221 svga->state.hw_draw.gs = variant; in emit_hw_gs()
|
D | svga_pipe_ts.c | 110 if (variant == svga->state.hw_draw.tcs) { in svga_delete_tcs_state() 112 svga->state.hw_draw.tcs = NULL; in svga_delete_tcs_state() 194 if (variant == svga->state.hw_draw.tes) { in svga_delete_tes_state() 196 svga->state.hw_draw.tes = NULL; in svga_delete_tes_state()
|
D | svga_state_vs.c | 233 if (svga->state.hw_draw.vs) { in svga_reemit_vs_bindings() 234 gbshader = svga->state.hw_draw.vs->gb_shader; in svga_reemit_vs_bindings() 235 shaderId = svga->state.hw_draw.vs->id; in svga_reemit_vs_bindings() 409 if (variant != svga->state.hw_draw.vs) { in emit_hw_vs() 419 svga->state.hw_draw.vs = variant; in emit_hw_vs()
|
D | svga_swtnl_state.c | 317 if (svga->state.hw_draw.layout_id == svga_render->layout_id) in svga_swtnl_update_vdecl() 318 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID; in svga_swtnl_update_vdecl() 328 if (svga->state.hw_draw.layout_id != svga_render->layout_id) { in svga_swtnl_update_vdecl() 331 svga->state.hw_draw.layout_id = svga_render->layout_id; in svga_swtnl_update_vdecl()
|
D | svga_pipe_fs.c | 104 if (variant == svga->state.hw_draw.fs) { in svga_delete_fs_state() 106 svga->state.hw_draw.fs = NULL; in svga_delete_fs_state()
|
D | svga_pipe_gs.c | 112 if (variant == svga->state.hw_draw.gs) { in svga_delete_gs_state() 114 svga->state.hw_draw.gs = NULL; in svga_delete_gs_state()
|
D | svga_pipe_vs.c | 195 if (variant == svga->state.hw_draw.vs) { in svga_delete_vs_state() 197 svga->state.hw_draw.vs = NULL; in svga_delete_vs_state()
|
D | svga_shader.h | 514 svga->state.hw_draw.fs ? in svga_is_using_flat_shading() 515 svga_fs_variant(svga->state.hw_draw.fs)->uses_flat_interp : FALSE; in svga_is_using_flat_shading()
|
D | svga_pipe_depthstencil.c | 252 if (ds->id == svga->state.hw_draw.depth_stencil_id) in svga_delete_depth_stencil_state() 253 svga->state.hw_draw.depth_stencil_id = SVGA3D_INVALID_ID; in svga_delete_depth_stencil_state()
|
D | svga_pipe_rasterizer.c | 415 if (raster->id == svga->state.hw_draw.rasterizer_id) in svga_delete_rasterizer_state() 416 svga->state.hw_draw.rasterizer_id = SVGA3D_INVALID_ID; in svga_delete_rasterizer_state()
|
D | svga_pipe_sampler.c | 523 for (i = 0; i < svga->state.hw_draw.num_sampler_views[shader]; i++) { in svga_cleanup_sampler_state() 524 pipe_sampler_view_reference(&svga->state.hw_draw.sampler_views[shader][i], in svga_cleanup_sampler_state()
|
D | svga_pipe_blend.c | 444 if (bs->id == svga->state.hw_draw.blend_id) in svga_delete_blend_state() 445 svga->state.hw_draw.blend_id = SVGA3D_INVALID_ID; in svga_delete_blend_state()
|
D | svga_draw_arrays.c | 231 svga_fs_variant(svga->state.hw_draw.fs)->constant_color_output) { in svga_hwtnl_draw_arrays()
|
D | svga_surface.c | 558 svga->state.hw_draw.has_backed_views = TRUE; in svga_validate_surface_view() 869 if (!svga->state.hw_draw.has_backed_views) in svga_propagate_rendertargets()
|
D | svga_shader.c | 635 struct svga_hw_draw_state *hw = &svga->state.hw_draw; in svga_rebind_shaders()
|
D | svga_context.h | 541 struct svga_hw_draw_state hw_draw; member
|