Lines Matching defs:buffer

59  * we can simply memcpy them into a batch buffer.
509 * Emit MI_LOAD_REGISTER_MEM to load a 32-bit MMIO register from a buffer.
524 * Load a 64-bit value from a buffer into a MMIO register via
1137 * depth buffer is D16_UNORM. We've found the WA to help with more depth
1138 * buffer configurations however, so we always disable it just to be safe.
1766 * prior to the LRI. If stencil buffer writes are enabled, then a Render * Cache Flush is also necessary.
2146 * buffer object yet, because 3DSTATE_SAMPLER_STATE_POINTERS requires
2351 * "The number of texels in the buffer texture's texel array is given by
2355 * where <buffer_size> is the size of the buffer object, in basic
2409 * Upload the CPU side SURFACE_STATEs into a GPU buffer.
2453 /* Next, upload the updated copies to a GPU buffer. */
2647 * can be bound as a render target or depth/stencil buffer.
2714 * render buffer is a single slice of a 3D texture, create a 2D texture
3379 /* TODO: Only do this if the buffer changes? */
3382 if (input && input->buffer_size && (input->buffer || input->user_buffer)) {
3387 pipe_resource_reference(&cbuf->buffer, NULL);
3389 &cbuf->buffer_offset, &cbuf->buffer, (void **) &map);
3391 if (!cbuf->buffer) {
3399 } else if (input->buffer) {
3400 if (cbuf->buffer != input->buffer) {
3407 pipe_resource_reference(&cbuf->buffer, NULL);
3408 cbuf->buffer = input->buffer;
3410 pipe_resource_reference(&cbuf->buffer, input->buffer);
3418 iris_resource_bo(cbuf->buffer)->size - cbuf->buffer_offset);
3420 struct iris_resource *res = (void *) cbuf->buffer;
3425 pipe_resource_reference(&cbuf->buffer, NULL);
3456 &cbuf->buffer_offset, &cbuf->buffer, &map);
3527 * SURFACE_STATE here, as the buffer offset may change each time.
3547 if (buffers && buffers[i].buffer) {
3548 struct iris_resource *res = (void *) buffers[i].buffer;
3552 pipe_resource_reference(&ssbo->buffer, &res->base.b);
3569 pipe_resource_reference(&shs->ssbo[start_slot + i].buffer, NULL);
3606 const struct pipe_vertex_buffer *buffer = buffers ? &buffers[i] : NULL;
3610 if (!buffer) {
3616 assert(!(buffer->is_user_buffer && buffer->buffer.user != NULL));
3618 if (buffer->buffer.resource &&
3619 state->resource != buffer->buffer.resource)
3624 state->resource = buffer->buffer.resource;
3626 pipe_resource_reference(&state->resource, buffer->buffer.resource);
3630 state->offset = (int) buffer->buffer_offset;
3640 vb.BufferPitch = buffer->stride;
3642 vb.BufferSize = res->base.b.width0 - (int) buffer->buffer_offset;
3644 ro_bo(NULL, res->bo->address + (int) buffer->buffer_offset);
3814 * "Target" here refers to a destination buffer. We translate this into
3816 * know which buffer this represents, or whether we ought to zero the
3833 pipe_resource_reference(&cso->base.buffer, p_res);
3850 pipe_resource_reference(&cso->base.buffer, NULL);
3892 iris_dirty_for_history(ice, (void *)tgt->base.buffer);
3928 struct iris_resource *res = (void *) tgt->base.buffer;
3931 * the value in the buffer, or 0xFFFFFFFF, which happens to mean
4005 const int buffer = output->output_buffer;
4010 buffer_mask[stream_id] |= 1 << buffer;
4024 int skip_components = output->dst_offset - next_offset[buffer];
4035 next_offset[buffer] = output->dst_offset + output->num_components;
4070 /* Set buffer pitches; 0 means unbound. */
4914 * gfx9. Newer gens can read it directly from the clear color state buffer.
4948 * Add a surface to the validation list, as well as the buffer containing
5040 if (!buf->buffer || !surf_state->res)
5043 iris_use_pinned_bo(batch, iris_resource_bo(buf->buffer), writable, access);
5323 iris_use_pinned_bo(batch, iris_resource_bo(tgt->base.buffer),
5355 struct iris_resource *res = (void *) cbuf->buffer;
5641 struct iris_resource *res = (void *) cbuf->buffer;
5687 * buffer 3 read length equal to zero committed followed by a
5688 * 3DSTATE_CONSTANT_* with buffer 0 read length not equal to
6259 iris_use_pinned_bo(batch, iris_resource_bo(tgt->base.buffer),
6533 /* Listen for buffer changes, and also write enable changes. */
6630 * So, we need to do a VF cache invalidate if the buffer for a VB
6893 /* Re-emit constants when starting a new batch buffer in order to
6958 /* The VF cache key only uses 32-bits, see vertex buffer comment above */
7003 /* Upload the current draw count from the draw parameters buffer
7029 struct iris_bo *bo = iris_resource_bo(indirect->buffer);
7428 pipe_resource_reference(&shs->constbuf[i].buffer, NULL);
7437 pipe_resource_reference(&shs->ssbo[i].buffer, NULL);
7524 struct iris_bo *bo = iris_resource_bo(tgt->buffer);
7541 /* Skip constant buffer 0, it's for regular uniforms, not UBOs */
7548 if (res->bo == iris_resource_bo(cbuf->buffer)) {
7564 if (res->bo == iris_resource_bo(ssbo->buffer)) {
7566 .buffer = &res->base.b,