Home
last modified time | relevance | path

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

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_context.c76 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { in svga_destroy()
77 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader], NULL); in svga_destroy()
249 memset(&svga->state.hw_draw, 0xcd, sizeof(svga->state.hw_draw)); in svga_context_create()
250 memset(&svga->state.hw_draw.views, 0x0, sizeof(svga->state.hw_draw.views)); in svga_context_create()
251 memset(&svga->state.hw_draw.num_samplers, 0, in svga_context_create()
252 sizeof(svga->state.hw_draw.num_samplers)); in svga_context_create()
253 memset(&svga->state.hw_draw.num_sampler_views, 0, in svga_context_create()
254 sizeof(svga->state.hw_draw.num_sampler_views)); in svga_context_create()
255 memset(svga->state.hw_draw.sampler_views, 0, in svga_context_create()
256 sizeof(svga->state.hw_draw.sampler_views)); 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; \
285 memset(svga->state.hw_draw.rs, 0xcd, sizeof(svga->state.hw_draw.rs)); in emit_rss_vgpu9()
383 if (svga->state.hw_draw.blend_id != curr->id || in emit_rss_vgpu10()
384 svga->state.hw_draw.blend_factor[0] != blend_factor[0] || in emit_rss_vgpu10()
385 svga->state.hw_draw.blend_factor[1] != blend_factor[1] || in emit_rss_vgpu10()
[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()
161 &svga->state.hw_draw.views[i], in update_tss_binding()
166 svga->state.hw_draw.num_views = svga->curr.num_sampler_views[shader]; in update_tss_binding()
170 const unsigned unit = 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_state_sampler.c267 for (; i < svga->state.hw_draw.num_sampler_views[shader]; i++) { in update_sampler_resources()
276 nviews = MAX2(svga->state.hw_draw.num_sampler_views[shader], count); in update_sampler_resources()
278 if (count != svga->state.hw_draw.num_sampler_views[shader] || in update_sampler_resources()
279 memcmp(sampler_views, svga->state.hw_draw.sampler_views[shader], in update_sampler_resources()
294 svga->state.hw_draw.sampler_views[shader][i]; in update_sampler_resources()
331 svga->state.hw_draw.num_sampler_views[shader] = count; in update_sampler_resources()
334 &svga->state.hw_draw.sampler_views[shader][i], in update_sampler_resources()
343 const unsigned unit = svga->state.hw_draw.fs->pstipple_sampler_unit; in update_sampler_resources()
398 struct svga_shader_variant *fs = svga->state.hw_draw.fs; in update_samplers()
417 for (; i < svga->state.hw_draw.num_samplers[shader]; i++) { in update_samplers()
[all …]
Dsvga_state_constants.c119 const struct svga_shader_variant *variant = svga->state.hw_draw.fs; in svga_get_extra_fs_constants()
200 const struct svga_shader_variant *variant = svga->state.hw_draw.vs; in svga_get_extra_vs_constants()
238 const struct svga_shader_variant *variant = svga->state.hw_draw.gs; in svga_get_extra_gs_constants()
313 if (memcmp(svga->state.hw_draw.cb[shader][offset + i], in emit_const_range()
333 memcmp(svga->state.hw_draw.cb[shader][offset + j], in emit_const_range()
376 memcpy(svga->state.hw_draw.cb[shader][offset + i], in emit_const_range()
450 variant = svga->state.hw_draw.vs; in emit_consts_vgpu9()
454 variant = svga->state.hw_draw.fs; in emit_consts_vgpu9()
501 variant = svga->state.hw_draw.vs; in emit_constbuf_vgpu10()
505 variant = svga->state.hw_draw.fs; in emit_constbuf_vgpu10()
[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()
382 const unsigned unit = svga->state.hw_draw.fs->pstipple_sampler_unit; in validate_sampler_resources()
426 buffer = svga_buffer(svga->state.hw_draw.constbuf[shader]); in validate_constant_buffers()
441 enabled_constbufs = svga->state.hw_draw.enabled_constbufs[shader] & ~1u; in validate_constant_buffers()
583 for (; i < svga->state.hw_draw.num_vbuffers; i++) { in draw_vgpu10()
604 if (svga->state.hw_draw.layout_id != hwtnl->cmd.vdecl_layout_id) { in draw_vgpu10()
610 svga->state.hw_draw.layout_id = hwtnl->cmd.vdecl_layout_id; in draw_vgpu10()
627 vbuf_count != svga->state.hw_draw.num_vbuffers || in draw_vgpu10()
[all …]
Dsvga_state_gs.c148 if (svga->state.hw_draw.gs) { in svga_reemit_gs_bindings()
149 gbshader = svga->state.hw_draw.gs->gb_shader; in svga_reemit_gs_bindings()
150 shaderId = svga->state.hw_draw.gs->id; in svga_reemit_gs_bindings()
187 if (svga->state.hw_draw.gs != NULL) { in emit_hw_gs()
195 svga->state.hw_draw.gs = NULL; in emit_hw_gs()
240 if (variant != svga->state.hw_draw.gs) { in emit_hw_gs()
248 svga->state.hw_draw.gs = variant; in emit_hw_gs()
Dsvga_state_fs.c375 if (!svga->state.hw_draw.fs) in svga_reemit_fs_bindings()
380 svga->state.hw_draw.fs->gb_shader, in svga_reemit_fs_bindings()
387 svga->state.hw_draw.fs->gb_shader, in svga_reemit_fs_bindings()
388 svga->state.hw_draw.fs->id); in svga_reemit_fs_bindings()
391 svga->state.hw_draw.fs->gb_shader); in svga_reemit_fs_bindings()
424 if (svga->state.hw_draw.fs) { in emit_hw_fs()
430 svga->state.hw_draw.fs = NULL; in emit_hw_fs()
456 if (variant != svga->state.hw_draw.fs) { in emit_hw_fs()
464 svga->state.hw_draw.fs = variant; in emit_hw_fs()
Dsvga_pipe_vertex.c307 if (velems->id == svga->state.hw_draw.layout_id) in svga_delete_vertex_elements_state()
308 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID; in svga_delete_vertex_elements_state()
327 pipe_resource_reference(&svga->state.hw_draw.ib, NULL); in svga_cleanup_vertex_state()
329 for (i = 0; i < svga->state.hw_draw.num_vbuffers; i++) in svga_cleanup_vertex_state()
330 pipe_resource_reference(&svga->state.hw_draw.vbuffers[i], NULL); in svga_cleanup_vertex_state()
Dsvga_state_vs.c219 if (svga->state.hw_draw.vs) { in svga_reemit_vs_bindings()
220 gbshader = svga->state.hw_draw.vs->gb_shader; in svga_reemit_vs_bindings()
221 shaderId = svga->state.hw_draw.vs->id; in svga_reemit_vs_bindings()
396 if (variant != svga->state.hw_draw.vs) { in emit_hw_vs()
406 svga->state.hw_draw.vs = variant; in emit_hw_vs()
Dsvga_swtnl_state.c330 if (svga->state.hw_draw.layout_id == svga_render->layout_id) in svga_swtnl_update_vdecl()
331 svga->state.hw_draw.layout_id = SVGA3D_INVALID_ID; in svga_swtnl_update_vdecl()
341 if (svga->state.hw_draw.layout_id != svga_render->layout_id) { in svga_swtnl_update_vdecl()
350 svga->state.hw_draw.layout_id = svga_render->layout_id; in svga_swtnl_update_vdecl()
Dsvga_pipe_fs.c101 if (variant == svga->state.hw_draw.fs) { in svga_delete_fs_state()
108 svga->state.hw_draw.fs = NULL; in svga_delete_fs_state()
Dsvga_pipe_gs.c113 if (variant == svga->state.hw_draw.gs) { in svga_delete_gs_state()
120 svga->state.hw_draw.gs = NULL; in svga_delete_gs_state()
Dsvga_pipe_vs.c192 if (variant == svga->state.hw_draw.vs) { in svga_delete_vs_state()
199 svga->state.hw_draw.vs = NULL; in svga_delete_vs_state()
Dsvga_pipe_draw.c53 svga->state.hw_draw.fs ? svga->state.hw_draw.fs->uses_flat_interp : FALSE; in is_using_flat_shading()
Dsvga_pipe_depthstencil.c267 if (ds->id == svga->state.hw_draw.depth_stencil_id) in svga_delete_depth_stencil_state()
268 svga->state.hw_draw.depth_stencil_id = SVGA3D_INVALID_ID; in svga_delete_depth_stencil_state()
Dsvga_pipe_rasterizer.c412 if (raster->id == svga->state.hw_draw.rasterizer_id) in svga_delete_rasterizer_state()
413 svga->state.hw_draw.rasterizer_id = SVGA3D_INVALID_ID; in svga_delete_rasterizer_state()
Dsvga_pipe_blend.c374 if (bs->id == svga->state.hw_draw.blend_id) in svga_delete_blend_state()
375 svga->state.hw_draw.blend_id = SVGA3D_INVALID_ID; in svga_delete_blend_state()
Dsvga_pipe_sampler.c558 for (i = 0; i < svga->state.hw_draw.num_sampler_views[shader]; i++) { in svga_cleanup_sampler_state()
560 &svga->state.hw_draw.sampler_views[shader][i]); in svga_cleanup_sampler_state()
Dsvga_draw_arrays.c228 svga->state.hw_draw.fs->constant_color_output) { in svga_hwtnl_draw_arrays()
Dsvga_surface.c520 svga->state.hw_draw.has_backed_views = TRUE; in svga_validate_surface_view()
810 if (!svga->state.hw_draw.has_backed_views) in svga_propagate_rendertargets()
Dsvga_context.h508 struct svga_hw_draw_state hw_draw; member
Dsvga_shader.c530 struct svga_hw_draw_state *hw = &svga->state.hw_draw; in svga_rebind_shaders()
Dsvga_swtnl_backend.c270 svga->state.hw_draw.fs->uses_flat_interp, in svga_vbuf_submit_state()
Dsvga_state_framebuffer.c204 svga->state.hw_draw.has_backed_views = FALSE; in emit_fb_vgpu10()