Home
last modified time | relevance | path

Searched refs:hw_draw (Results 1 – 25 of 31) sorted by relevance

12

/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_context.c70 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { in svga_destroy()
71 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.constbuf[0]); i++) { in svga_destroy()
72 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader][i], NULL); in svga_destroy()
284 memset(&svga->state.hw_draw, 0xcd, sizeof(svga->state.hw_draw)); in svga_context_create()
285 memset(&svga->state.hw_draw.views, 0x0, sizeof(svga->state.hw_draw.views)); in svga_context_create()
286 memset(&svga->state.hw_draw.num_samplers, 0, in svga_context_create()
287 sizeof(svga->state.hw_draw.num_samplers)); in svga_context_create()
288 memset(&svga->state.hw_draw.num_sampler_views, 0, in svga_context_create()
289 sizeof(svga->state.hw_draw.num_sampler_views)); in svga_context_create()
290 memset(svga->state.hw_draw.sampler_views, 0, in svga_context_create()
[all …]
Dsvga_state_rss.c50 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()
424 if (svga->state.hw_draw.blend_id != curr->id || in emit_rss_vgpu10()
425 svga->state.hw_draw.blend_factor[0] != blend_factor[0] || in emit_rss_vgpu10()
426 svga->state.hw_draw.blend_factor[1] != blend_factor[1] || in emit_rss_vgpu10()
[all …]
Dsvga_state_uav.c316 struct svga_hw_draw_state *hw = &svga->state.hw_draw; in svga_rebind_uav()
579 u < ARRAY_SIZE(svga->state.hw_draw.uaViewIds); u++) { in svga_create_uav_list()
619 &svga->state.hw_draw.image_views[shader][i]; in svga_save_uav_state()
632 &svga->state.hw_draw.shader_buffers[shader][i]; in svga_save_uav_state()
638 svga->state.hw_draw.num_image_views[shader] = in svga_save_uav_state()
640 svga->state.hw_draw.num_shader_buffers[shader] = in svga_save_uav_state()
649 struct svga_shader_buffer *hw_buf = &svga->state.hw_draw.atomic_buffers[i]; in svga_save_uav_state()
655 svga->state.hw_draw.num_atomic_buffers = svga->curr.num_atomic_buffers; in svga_save_uav_state()
661 svga->state.hw_draw.num_cs_uavs = num_uavs; in svga_save_uav_state()
662 memcpy(svga->state.hw_draw.csUAViewIds, uaViewIds, in svga_save_uav_state()
[all …]
Dsvga_state_sampler.c279 for (; i < svga->state.hw_draw.num_sampler_views[shader]; i++) { in update_sampler_resources()
288 nviews = MAX2(svga->state.hw_draw.num_sampler_views[shader], count); in update_sampler_resources()
290 if (count != svga->state.hw_draw.num_sampler_views[shader] || in update_sampler_resources()
291 memcmp(sampler_views, svga->state.hw_draw.sampler_views[shader], in update_sampler_resources()
306 svga->state.hw_draw.sampler_views[shader][i]; in update_sampler_resources()
343 svga->state.hw_draw.num_sampler_views[shader] = count; in update_sampler_resources()
346 &svga->state.hw_draw.sampler_views[shader][i], in update_sampler_resources()
356 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit; in update_sampler_resources()
414 svga_fs_variant(svga->state.hw_draw.fs); in update_samplers()
466 for (i = nsamplers; i < svga->state.hw_draw.num_samplers[shader]; i++) { in update_samplers()
[all …]
Dsvga_state_constants.c148 svga->state.hw_draw.num_image_views[shader], in svga_get_extra_constants_common()
149 svga->state.hw_draw.image_views); in svga_get_extra_constants_common()
165 const struct svga_shader_variant *variant = svga->state.hw_draw.fs; in svga_get_extra_fs_constants()
248 const struct svga_shader_variant *variant = svga->state.hw_draw.vs; in svga_get_extra_vs_constants()
298 const struct svga_shader_variant *variant = svga->state.hw_draw.gs; in svga_get_extra_gs_constants()
348 const struct svga_shader_variant *variant = svga->state.hw_draw.tcs; in svga_get_extra_tcs_constants()
371 const struct svga_shader_variant *variant = svga->state.hw_draw.tes; in svga_get_extra_tes_constants()
399 const struct svga_shader_variant *variant = svga->state.hw_draw.cs; in svga_get_extra_cs_constants()
457 if (memcmp(svga->state.hw_draw.cb[shader][offset + i], in emit_const_range()
477 memcmp(svga->state.hw_draw.cb[shader][offset + j], in emit_const_range()
[all …]
Dsvga_state_tss.c49 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 …]
Dsvga_draw.c211 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()
399 svga_fs_variant(svga->state.hw_draw.fs)->pstipple_sampler_unit; in svga_validate_sampler_resources()
458 buffer = svga_buffer(svga->state.hw_draw.constbuf[shader][0]); in svga_validate_constant_buffers()
476 enabled_constbufs = svga->state.hw_draw.enabled_constbufs[shader] & ~1u; in svga_validate_constant_buffers()
488 handle = svga->state.hw_draw.constbufoffsets[shader][i].handle; in svga_validate_constant_buffers()
503 unsigned enabled_rawbufs = svga->state.hw_draw.enabled_rawbufs[shader] & ~1u; in svga_validate_constant_buffers()
554 svga->state.hw_draw.num_image_views[shader], in svga_validate_image_views()
555 &svga->state.hw_draw.image_views[shader][0], rebind); in svga_validate_image_views()
[all …]
Dsvga_state_ts.c57 struct svga_tes_variant *tes = svga_tes_variant(svga->state.hw_draw.tes); in make_tcs_key()
98 if (svga->state.hw_draw.tcs != NULL) { in emit_hw_tcs()
106 svga->state.hw_draw.tcs = NULL; in emit_hw_tcs()
122 if (variant != svga->state.hw_draw.tcs) { in emit_hw_tcs()
130 svga->state.hw_draw.tcs = variant; in emit_hw_tcs()
254 if (svga->state.hw_draw.tes != NULL) { in emit_hw_tes()
262 svga->state.hw_draw.tes = NULL; in emit_hw_tes()
290 if (variant != svga->state.hw_draw.tes) { in emit_hw_tes()
298 svga->state.hw_draw.tes = variant; in emit_hw_tes()
Dsvga_state_fs.c326 if (!svga->state.hw_draw.fs) in svga_reemit_fs_bindings()
331 svga->state.hw_draw.fs->gb_shader, in svga_reemit_fs_bindings()
337 svga->state.hw_draw.fs->gb_shader, in svga_reemit_fs_bindings()
338 svga->state.hw_draw.fs->id); in svga_reemit_fs_bindings()
341 svga->state.hw_draw.fs->gb_shader); in svga_reemit_fs_bindings()
378 if (svga->state.hw_draw.fs) { in emit_hw_fs()
384 svga->state.hw_draw.fs = NULL; in emit_hw_fs()
410 if (variant != svga->state.hw_draw.fs) { in emit_hw_fs()
418 svga->state.hw_draw.fs = variant; in emit_hw_fs()
Dsvga_state_cs.c83 if (svga->state.hw_draw.cs != NULL) { in emit_hw_cs()
91 svga->state.hw_draw.cs = NULL; in emit_hw_cs()
107 if (variant != svga->state.hw_draw.cs) { in emit_hw_cs()
115 svga->state.hw_draw.cs = variant; in emit_hw_cs()
Dsvga_state_gs.c130 if (svga->state.hw_draw.gs != NULL) { in emit_hw_gs()
138 svga->state.hw_draw.gs = NULL; in emit_hw_gs()
178 if (variant != svga->state.hw_draw.gs) { in emit_hw_gs()
186 svga->state.hw_draw.gs = variant; in emit_hw_gs()
Dsvga_pipe_vertex.c298 if (velems->id == svga->state.hw_draw.layout_id) in svga_delete_vertex_elements_state()
299 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID; in svga_delete_vertex_elements_state()
318 pipe_resource_reference(&svga->state.hw_draw.ib, NULL); in svga_cleanup_vertex_state()
320 for (i = 0; i < svga->state.hw_draw.num_vbuffers; i++) in svga_cleanup_vertex_state()
321 pipe_resource_reference(&svga->state.hw_draw.vbuffers[i], NULL); in svga_cleanup_vertex_state()
Dsvga_pipe_ts.c115 if (variant == svga->state.hw_draw.tcs) { in svga_delete_tcs_state()
117 svga->state.hw_draw.tcs = NULL; in svga_delete_tcs_state()
195 if (variant == svga->state.hw_draw.tes) { in svga_delete_tes_state()
197 svga->state.hw_draw.tes = NULL; in svga_delete_tes_state()
Dsvga_shader_buffer.c259 &svga->state.hw_draw.shader_buffers[shader][0]; in svga_init_shader_buffer_functions()
276 memset(svga->state.hw_draw.num_shader_buffers, 0, in svga_init_shader_buffer_functions()
277 sizeof(svga->state.hw_draw.num_shader_buffers)); in svga_init_shader_buffer_functions()
285 for (unsigned i = 0; i < ARRAY_SIZE(svga->state.hw_draw.atomic_buffers); i++) { in svga_init_shader_buffer_functions()
289 svga->state.hw_draw.num_atomic_buffers = 0; in svga_init_shader_buffer_functions()
Dsvga_state_vs.c171 if (svga->state.hw_draw.vs) { in svga_reemit_vs_bindings()
172 gbshader = svga->state.hw_draw.vs->gb_shader; in svga_reemit_vs_bindings()
173 shaderId = svga->state.hw_draw.vs->id; in svga_reemit_vs_bindings()
342 if (variant != svga->state.hw_draw.vs) { in emit_hw_vs()
352 svga->state.hw_draw.vs = variant; in emit_hw_vs()
Dsvga_swtnl_state.c324 if (svga->state.hw_draw.layout_id == svga_render->layout_id) in svga_swtnl_update_vdecl()
325 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID; in svga_swtnl_update_vdecl()
335 if (svga->state.hw_draw.layout_id != svga_render->layout_id) { in svga_swtnl_update_vdecl()
338 svga->state.hw_draw.layout_id = svga_render->layout_id; in svga_swtnl_update_vdecl()
Dsvga_pipe_gs.c111 if (variant == svga->state.hw_draw.gs) { in svga_delete_gs_state()
113 svga->state.hw_draw.gs = NULL; in svga_delete_gs_state()
Dsvga_pipe_fs.c111 if (variant == svga->state.hw_draw.fs) { in svga_delete_fs_state()
113 svga->state.hw_draw.fs = NULL; in svga_delete_fs_state()
Dsvga_pipe_vs.c131 if (variant == svga->state.hw_draw.vs) { in svga_delete_vs_state()
133 svga->state.hw_draw.vs = NULL; in svga_delete_vs_state()
Dsvga_image_view.c231 &svga->state.hw_draw.image_views[shader][0]; in svga_init_shader_image_functions()
241 memset(svga->state.hw_draw.num_image_views, 0, in svga_init_shader_image_functions()
242 sizeof(svga->state.hw_draw.num_image_views)); in svga_init_shader_image_functions()
Dsvga_pipe_cs.c115 if (variant == svga->state.hw_draw.cs) { in svga_delete_compute_state()
117 svga->state.hw_draw.cs = NULL; in svga_delete_compute_state()
Dsvga_pipe_depthstencil.c252 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()
Dsvga_shader.h614 svga->state.hw_draw.fs ? in svga_is_using_flat_shading()
615 svga_fs_variant(svga->state.hw_draw.fs)->uses_flat_interp : FALSE; in svga_is_using_flat_shading()
Dsvga_pipe_rasterizer.c467 if (raster->id == svga->state.hw_draw.rasterizer_id) in svga_delete_rasterizer_state()
468 svga->state.hw_draw.rasterizer_id = SVGA3D_INVALID_ID; in svga_delete_rasterizer_state()
Dsvga_pipe_sampler.c543 for (i = 0; i < svga->state.hw_draw.num_sampler_views[shader]; i++) { in svga_cleanup_sampler_state()
544 pipe_sampler_view_reference(&svga->state.hw_draw.sampler_views[shader][i], in svga_cleanup_sampler_state()

12