Home
last modified time | relevance | path

Searched refs:constbufs (Results 1 – 6 of 6) sorted by relevance

/external/mesa3d/src/gallium/drivers/svga/
Dsvga_pipe_constants.c67 assert(index < ARRAY_SIZE(svga->curr.constbufs[shader])); in svga_set_constant_buffer()
71 pipe_resource_reference(&svga->curr.constbufs[shader][index].buffer, buf); in svga_set_constant_buffer()
76 svga->curr.constbufs[shader][index].buffer_size = in svga_set_constant_buffer()
79 svga->curr.constbufs[shader][index].buffer_offset = cb ? cb->buffer_offset : 0; in svga_set_constant_buffer()
80 svga->curr.constbufs[shader][index].user_buffer = NULL; /* not used */ in svga_set_constant_buffer()
Dsvga_swtnl_draw.c99 for (i = 0; i < ARRAY_SIZE(svga->curr.constbufs[PIPE_SHADER_VERTEX]); ++i) { in svga_swtnl_draw_vbo()
100 if (svga->curr.constbufs[PIPE_SHADER_VERTEX][i].buffer == NULL) { in svga_swtnl_draw_vbo()
105 svga->curr.constbufs[PIPE_SHADER_VERTEX][i].buffer, in svga_swtnl_draw_vbo()
112 svga->curr.constbufs[PIPE_SHADER_VERTEX][i].buffer->width0); in svga_swtnl_draw_vbo()
137 for (i = 0; i < ARRAY_SIZE(svga->curr.constbufs[PIPE_SHADER_VERTEX]); ++i) { in svga_swtnl_draw_vbo()
138 if (svga->curr.constbufs[PIPE_SHADER_VERTEX][i].buffer) { in svga_swtnl_draw_vbo()
Dsvga_state_constants.c412 assert(svga->curr.constbufs[shader][1].buffer == NULL); in emit_consts_vgpu9()
414 cbuf = &svga->curr.constbufs[shader][0]; in emit_consts_vgpu9()
416 if (svga->curr.constbufs[shader][0].buffer) { in emit_consts_vgpu9()
419 pipe_buffer_map(&svga->pipe, svga->curr.constbufs[shader][0].buffer, in emit_consts_vgpu9()
497 cbuf = &svga->curr.constbufs[shader][0]; in emit_constbuf_vgpu10()
657 unsigned offset = svga->curr.constbufs[shader][index].buffer_offset; in emit_consts_vgpu10()
658 unsigned size = svga->curr.constbufs[shader][index].buffer_size; in emit_consts_vgpu10()
660 svga_buffer(svga->curr.constbufs[shader][index].buffer); in emit_consts_vgpu10()
Dsvga_context.c117 for (i = 0; i < ARRAY_SIZE(svga->curr.constbufs[shader]); ++i) { in svga_destroy()
118 pipe_resource_reference(&svga->curr.constbufs[shader][i].buffer, NULL); in svga_destroy()
389 svga->rebind.flags.constbufs = TRUE; in svga_context_flush()
Dsvga_draw.c425 if (svga->rebind.flags.constbufs) { in validate_constant_buffers()
444 buffer = svga_buffer(svga->curr.constbufs[shader][i].buffer); in validate_constant_buffers()
449 if (svga->rebind.flags.constbufs) { in validate_constant_buffers()
460 svga->rebind.flags.constbufs = FALSE; in validate_constant_buffers()
Dsvga_context.h278 struct pipe_constant_buffer constbufs[PIPE_SHADER_TYPES][SVGA_MAX_CONST_BUFS]; member
519 unsigned constbufs:1; member