/external/libdrm/intel/tests/ |
D | gen7-3d.batch-ref.txt | 42 0x123000a4: 0x00000000: pointer to constbuf 0 43 0x123000a8: 0x00000000: pointer to constbuf 1 44 0x123000ac: 0x00000000: pointer to constbuf 2 45 0x123000b0: 0x00000000: pointer to constbuf 3 58 0x123000e4: 0x00000000: pointer to constbuf 0 59 0x123000e8: 0x00000000: pointer to constbuf 1 60 0x123000ec: 0x00000000: pointer to constbuf 2 61 0x123000f0: 0x00000000: pointer to constbuf 3 78 0x12300134: 0x00000000: pointer to constbuf 0 79 0x12300138: 0x00000000: pointer to constbuf 1 [all …]
|
/external/mesa3d/src/gallium/auxiliary/postprocess/ |
D | pp_mlaa.c | 66 pipe->buffer_subdata(pipe, ppq->constbuf, PIPE_TRANSFER_WRITE, in up_consts() 89 assert(ppq->constbuf); in pp_jimenezmlaa_run() 113 0, ppq->constbuf); in pp_jimenezmlaa_run() 115 0, ppq->constbuf); in pp_jimenezmlaa_run() 242 ppq->constbuf = pipe_buffer_create(ppq->p->screen, in pp_jimenezmlaa_init_run() 246 if (ppq->constbuf == NULL) { in pp_jimenezmlaa_init_run() 359 if (ppq->constbuf) { in pp_jimenezmlaa_free() 360 pipe_resource_reference(&ppq->constbuf, NULL); in pp_jimenezmlaa_free()
|
D | pp_private.h | 79 struct pipe_resource *constbuf; /* MLAA constant buffer */ member
|
/external/mesa3d/src/gallium/drivers/nouveau/nv30/ |
D | nv30_fragprog.c | 85 if (nv30->fragprog.constbuf) { in nv30_fragprog_validate() 86 struct pipe_resource *constbuf = nv30->fragprog.constbuf; in nv30_fragprog_validate() local 87 uint32_t *cbuf = (uint32_t *)nv04_resource(constbuf)->data; in nv30_fragprog_validate()
|
D | nv30_vertprog.c | 174 struct nv04_resource *res = nv04_resource(nv30->vertprog.constbuf); in nv30_vertprog_validate() 183 float *constbuf = (float *)res->data; in nv30_vertprog_validate() local 185 !memcmp(data->value, &constbuf[data->index * 4], 16)) in nv30_vertprog_validate() 187 memcpy(data->value, &constbuf[data->index * 4], 16); in nv30_vertprog_validate()
|
D | nv30_context.h | 78 struct pipe_resource *constbuf; member 91 struct pipe_resource *constbuf; member
|
/external/mesa3d/src/gallium/drivers/freedreno/ir3/ |
D | ir3_shader.c | 544 struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) in emit_user_consts() argument 548 uint32_t dirty_mask = constbuf->enabled_mask; in emit_user_consts() 551 struct pipe_constant_buffer *cb = &constbuf->cb[index]; in emit_user_consts() 575 constbuf->dirty_mask &= ~(1 << index); in emit_user_consts() 582 struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) in emit_ubos() argument 592 struct pipe_constant_buffer *cb = &constbuf->cb[index]; in emit_ubos() 595 if ((constbuf->enabled_mask & (1 << index)) && cb->buffer) { in emit_ubos() 771 struct fd_constbuf_stateobj *constbuf; in emit_common_consts() local 774 constbuf = &ctx->constbuf[t]; in emit_common_consts() 777 emit_user_consts(ctx, v, ring, constbuf); in emit_common_consts() [all …]
|
/external/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
D | fd2_emit.c | 54 struct fd_constbuf_stateobj *constbuf, in emit_constants() argument 57 uint32_t enabled_mask = constbuf->enabled_mask; in emit_constants() 63 constbuf->dirty_mask = enabled_mask; in emit_constants() 68 struct pipe_constant_buffer *cb = &constbuf->cb[index]; in emit_constants() 82 if (constbuf->dirty_mask & (1 << index)) { in emit_constants() 99 constbuf->dirty_mask &= ~(1 << index); in emit_constants() 289 &ctx->constbuf[PIPE_SHADER_VERTEX], in fd2_emit_state() 292 &ctx->constbuf[PIPE_SHADER_FRAGMENT], in fd2_emit_state()
|
/external/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
D | nvc0_compute.c | 199 if (nvc0->constbuf[s][i].user) { in nvc0_compute_validate_constbufs() 202 const unsigned size = nvc0->constbuf[s][0].size; in nvc0_compute_validate_constbufs() 204 assert(nvc0->constbuf[s][0].u.data); in nvc0_compute_validate_constbufs() 219 nvc0->constbuf[s][0].u.data); in nvc0_compute_validate_constbufs() 222 nv04_resource(nvc0->constbuf[s][i].u.buf); in nvc0_compute_validate_constbufs() 225 PUSH_DATA (push, nvc0->constbuf[s][i].size); in nvc0_compute_validate_constbufs() 226 PUSH_DATAh(push, res->address + nvc0->constbuf[s][i].offset); in nvc0_compute_validate_constbufs() 227 PUSH_DATA (push, res->address + nvc0->constbuf[s][i].offset); in nvc0_compute_validate_constbufs()
|
D | nvc0_state.c | 732 if (nvc0->constbuf[s][i].user) in nvc0_set_constant_buffer() 733 nvc0->constbuf[s][i].u.buf = NULL; in nvc0_set_constant_buffer() 735 if (nvc0->constbuf[s][i].u.buf) in nvc0_set_constant_buffer() 740 if (nvc0->constbuf[s][i].user) in nvc0_set_constant_buffer() 741 nvc0->constbuf[s][i].u.buf = NULL; in nvc0_set_constant_buffer() 743 if (nvc0->constbuf[s][i].u.buf) in nvc0_set_constant_buffer() 750 if (nvc0->constbuf[s][i].u.buf) in nvc0_set_constant_buffer() 751 nv04_resource(nvc0->constbuf[s][i].u.buf)->cb_bindings[s] &= ~(1 << i); in nvc0_set_constant_buffer() 752 pipe_resource_reference(&nvc0->constbuf[s][i].u.buf, res); in nvc0_set_constant_buffer() 754 nvc0->constbuf[s][i].user = (cb && cb->user_buffer) ? true : false; in nvc0_set_constant_buffer() [all …]
|
D | nvc0_context.c | 79 if (nvc0->constbuf[s][i].user) in nvc0_memory_barrier() 82 res = nvc0->constbuf[s][i].u.buf; in nvc0_memory_barrier() 153 if (!nvc0->constbuf[s][i].user) in nvc0_context_unreference_resources() 154 pipe_resource_reference(&nvc0->constbuf[s][i].u.buf, NULL); in nvc0_context_unreference_resources() 297 if (!nvc0->constbuf[s][i].user && in nvc0_invalidate_resource_storage() 298 nvc0->constbuf[s][i].u.buf == res) { in nvc0_invalidate_resource_storage()
|
D | nve4_compute.c | 371 if (nvc0->constbuf[s][i].user) { in nve4_compute_validate_constbufs() 374 const unsigned size = nvc0->constbuf[s][0].size; in nve4_compute_validate_constbufs() 376 assert(nvc0->constbuf[s][0].u.data); in nve4_compute_validate_constbufs() 386 PUSH_DATAp(push, nvc0->constbuf[s][0].u.data, size / 4); in nve4_compute_validate_constbufs() 390 nv04_resource(nvc0->constbuf[s][i].u.buf); in nve4_compute_validate_constbufs() 406 PUSH_DATA (push, res->address + nvc0->constbuf[s][i].offset); in nve4_compute_validate_constbufs() 407 PUSH_DATAh(push, res->address + nvc0->constbuf[s][i].offset); in nve4_compute_validate_constbufs() 408 PUSH_DATA (push, nvc0->constbuf[5][i].size); in nve4_compute_validate_constbufs() 584 if (nvc0->constbuf[5][0].user || cp->parm_size) { in nve4_compute_setup_launch_desc() 622 if (nvc0->constbuf[5][0].user || cp->parm_size) { in gp100_compute_setup_launch_desc()
|
D | nvc0_state_validate.c | 484 if (nvc0->constbuf[s][i].user) { in nvc0_constbufs_validate() 487 const unsigned size = nvc0->constbuf[s][0].size; in nvc0_constbufs_validate() 489 assert(nvc0->constbuf[s][0].u.data); in nvc0_constbufs_validate() 504 nvc0->constbuf[s][0].u.data); in nvc0_constbufs_validate() 507 nv04_resource(nvc0->constbuf[s][i].u.buf); in nvc0_constbufs_validate() 510 PUSH_DATA (push, nvc0->constbuf[s][i].size); in nvc0_constbufs_validate() 511 PUSH_DATAh(push, res->address + nvc0->constbuf[s][i].offset); in nvc0_constbufs_validate() 512 PUSH_DATA (push, res->address + nvc0->constbuf[s][i].offset); in nvc0_constbufs_validate()
|
/external/mesa3d/src/gallium/drivers/nouveau/nv50/ |
D | nv50_context.c | 79 if (nv50->constbuf[s][i].user) in nv50_memory_barrier() 82 res = nv50->constbuf[s][i].u.buf; in nv50_memory_barrier() 151 if (!nv50->constbuf[s][i].user) in nv50_context_unreference_resources() 152 pipe_resource_reference(&nv50->constbuf[s][i].u.buf, NULL); in nv50_context_unreference_resources() 252 if (!nv50->constbuf[s][i].user && in nv50_invalidate_resource_storage() 253 nv50->constbuf[s][i].u.buf == res) { in nv50_invalidate_resource_storage()
|
D | nv50_state.c | 875 if (nv50->constbuf[s][i].user) in nv50_set_constant_buffer() 876 nv50->constbuf[s][i].u.buf = NULL; in nv50_set_constant_buffer() 878 if (nv50->constbuf[s][i].u.buf) { in nv50_set_constant_buffer() 880 nv04_resource(nv50->constbuf[s][i].u.buf)->cb_bindings[s] &= ~(1 << i); in nv50_set_constant_buffer() 882 pipe_resource_reference(&nv50->constbuf[s][i].u.buf, res); in nv50_set_constant_buffer() 884 nv50->constbuf[s][i].user = (cb && cb->user_buffer) ? true : false; in nv50_set_constant_buffer() 885 if (nv50->constbuf[s][i].user) { in nv50_set_constant_buffer() 886 nv50->constbuf[s][i].u.data = cb->user_buffer; in nv50_set_constant_buffer() 887 nv50->constbuf[s][i].size = MIN2(cb->buffer_size, 0x10000); in nv50_set_constant_buffer() 892 nv50->constbuf[s][i].offset = cb->buffer_offset; in nv50_set_constant_buffer() [all …]
|
D | nv50_shader_state.c | 57 if (nv50->constbuf[s][i].user) { in nv50_constbufs_validate() 60 unsigned words = nv50->constbuf[s][0].size / 4; in nv50_constbufs_validate() 77 PUSH_DATAp(push, &nv50->constbuf[s][0].u.data[start * 4], nr); in nv50_constbufs_validate() 84 nv04_resource(nv50->constbuf[s][i].u.buf); in nv50_constbufs_validate() 92 PUSH_DATAh(push, res->address + nv50->constbuf[s][i].offset); in nv50_constbufs_validate() 93 PUSH_DATA (push, res->address + nv50->constbuf[s][i].offset); in nv50_constbufs_validate() 95 (nv50->constbuf[s][i].size & 0xffff)); in nv50_constbufs_validate()
|
D | nv50_transfer.c | 417 uint32_t cb_offset = nv50->constbuf[s][i].offset; in nv50_cb_push() 421 cb_offset + nv50->constbuf[s][i].size >= offset + words * 4) { in nv50_cb_push() 422 cb = &nv50->constbuf[s][i]; in nv50_cb_push()
|
/external/mesa3d/src/gallium/drivers/freedreno/ |
D | freedreno_draw.c | 195 foreach_bit(i, ctx->constbuf[PIPE_SHADER_VERTEX].enabled_mask) in fd_draw_vbo() 196 resource_read(batch, ctx->constbuf[PIPE_SHADER_VERTEX].cb[i].buffer); in fd_draw_vbo() 197 foreach_bit(i, ctx->constbuf[PIPE_SHADER_FRAGMENT].enabled_mask) in fd_draw_vbo() 198 resource_read(batch, ctx->constbuf[PIPE_SHADER_FRAGMENT].cb[i].buffer); in fd_draw_vbo() 484 foreach_bit(i, ctx->constbuf[PIPE_SHADER_COMPUTE].enabled_mask) in fd_launch_grid() 485 resource_read(batch, ctx->constbuf[PIPE_SHADER_COMPUTE].cb[i].buffer); in fd_launch_grid()
|
/external/mesa3d/src/gallium/tests/graw/ |
D | vs-test.c | 46 static struct pipe_resource *constbuf = NULL; variable 96 constbuf = screen->resource_create(screen, in init_fs_constbuf() 98 if (constbuf == NULL) in init_fs_constbuf() 104 ctx->buffer_subdata(ctx, constbuf, in init_fs_constbuf() 110 constbuf); in init_fs_constbuf()
|
/external/mesa3d/src/gallium/drivers/svga/ |
D | svga_context.c | 76 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() 267 memset(svga->state.hw_draw.constbuf, 0, in svga_context_create() 268 sizeof(svga->state.hw_draw.constbuf)); in svga_context_create()
|
/external/mesa3d/src/gallium/auxiliary/util/ |
D | u_tests.h | 42 struct pipe_resource *constbuf);
|
/external/mesa3d/src/gallium/drivers/r600/ |
D | r600_hw_context.c | 401 struct r600_constbuf_state *constbuf = &ctx->constbuf_state[shader]; in r600_begin_new_cs() local 404 constbuf->dirty_mask = constbuf->enabled_mask; in r600_begin_new_cs() 408 r600_constant_buffers_dirty(ctx, constbuf); in r600_begin_new_cs()
|
/external/mesa3d/src/gallium/drivers/vc4/ |
D | vc4_draw.c | 238 &vc4->constbuf[PIPE_SHADER_FRAGMENT], in vc4_emit_gl_shader_state() 241 &vc4->constbuf[PIPE_SHADER_VERTEX], in vc4_emit_gl_shader_state() 244 &vc4->constbuf[PIPE_SHADER_VERTEX], in vc4_emit_gl_shader_state()
|
/external/mesa3d/src/gallium/drivers/vc5/ |
D | vc5_draw.c | 145 &vc5->constbuf[PIPE_SHADER_FRAGMENT], in vc5_emit_gl_shader_state() 149 &vc5->constbuf[PIPE_SHADER_VERTEX], in vc5_emit_gl_shader_state() 153 &vc5->constbuf[PIPE_SHADER_VERTEX], in vc5_emit_gl_shader_state()
|
/external/mesa3d/src/gallium/auxiliary/hud/ |
D | hud_private.h | 79 struct pipe_constant_buffer constbuf; member
|