Lines Matching refs:buffer

73          pipe_resource_reference(&hwtnl->index_cache[i][j].buffer, NULL);
146 /* release old buffer references */
157 * Determine whether the specified buffer is referred in the primitive queue,
162 struct pipe_resource *buffer)
166 if (svga_buffer_is_user_buffer(buffer)) {
175 if (hwtnl->cmd.vbufs[i].buffer.resource == buffer) {
181 if (hwtnl->cmd.prim_ib[i] == buffer) {
223 handle = svga_buffer_handle(svga, hwtnl->cmd.vbufs[j].buffer.resource,
454 struct svga_buffer *buffer;
456 /* Rebind the default constant buffer if needed */
458 buffer = svga_buffer(svga->state.hw_draw.constbuf[shader][0]);
459 if (buffer) {
461 buffer->handle,
479 buffer = svga_buffer(svga->curr.constbufs[shader][i].buffer);
481 /* If the constant buffer has hw storage, get the buffer winsys handle.
484 if (buffer && !buffer->use_swbuf)
485 handle = svga_buffer_handle(svga, &buffer->b,
506 buffer = svga_buffer(svga->curr.constbufs[shader][i].buffer);
508 assert(buffer != NULL);
509 handle = svga_buffer_handle(svga, &buffer->b,
568 * A helper function to validate shader buffer and atomic buffer resources to
617 * Was the last command put into the command buffer a drawing command?
618 * We use this to determine if we can skip emitting buffer re-bind
646 * They are equal if the vertex buffer attributes and the vertex buffer
691 /* Get handle for each referenced vertex buffer, unless we're using a
692 * stream-out buffer to specify the drawing information (DrawAuto).
693 * Also set up the buffer attributes.
697 so_vertex_count->buffer,
703 /* Set IA slot0 input buffer to the SO buffer */
708 assert(so_vertex_count->buffer != NULL);
709 vbuffer_attrs[0].sizeInBytes = svga_buffer(so_vertex_count->buffer)->size;
710 vbuffers[0] = so_vertex_count->buffer;
718 svga_buffer(hwtnl->cmd.vbufs[i].buffer.resource);
743 /* Unbind the unreferenced the vertex buffer handles */
753 /* Get handle for each referenced vertex buffer */
756 svga_buffer(hwtnl->cmd.vbufs[i].buffer.resource);
789 /* Get handle for the stream out buffer */
792 so_vertex_count->buffer,
804 /* If any of the vertex buffer state has changed, issue
831 /* Loop through the vertex buffer lists to only emit
833 * corresponding entries in the device's vertex buffer list.
848 /* Include the last vertex buffer in the next emit
857 /* numVBuf can only be 0 if the first vertex buffer
925 * Prepare the index buffer for a drawing command.
978 * command, we still need to reference the index buffer surface.
1032 /* No need to explicitly rebind index buffer and vertex buffers here.
1033 * Even if the same index buffer or vertex buffers are referenced for this
1074 indirect_handle = svga_buffer_handle(svga, indirect->buffer,
1122 /* Unbind previously bound index buffer */
1168 * Emit any pending drawing commands to the command buffer.
1170 * immediately emit them into the command buffer.
1219 unsigned size = vb->buffer.resource ? vb->buffer.resource->width0 : 0;
1301 * make buffer overflow detection based on their values.
1351 * from a buffer.