/third_party/mesa3d/src/gallium/drivers/nouveau/nvc0/ |
H A D | nve4_compute.c | 396 if (nvc0->constbuf[s][i].user) { in nve4_compute_validate_constbufs() 399 const unsigned size = nvc0->constbuf[s][0].size; in nve4_compute_validate_constbufs() 401 assert(nvc0->constbuf[s][0].u.data); in nve4_compute_validate_constbufs() 411 PUSH_DATAp(push, nvc0->constbuf[s][0].u.data, size / 4); in nve4_compute_validate_constbufs() 415 nv04_resource(nvc0->constbuf[s][i].u.buf); in nve4_compute_validate_constbufs() 431 PUSH_DATA (push, res->address + nvc0->constbuf[s][i].offset); in nve4_compute_validate_constbufs() 432 PUSH_DATAh(push, res->address + nvc0->constbuf[s][i].offset); in nve4_compute_validate_constbufs() 433 PUSH_DATA (push, nvc0->constbuf[s][i].size); in nve4_compute_validate_constbufs() 606 if (nvc0->constbuf[5][i].user || !nvc0->constbuf[ in nve4_compute_setup_buf_cb() [all...] |
H A 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() 218 nvc0->constbuf[s][0].u.data); in nvc0_compute_validate_constbufs() 221 nv04_resource(nvc0->constbuf[s][i].u.buf); in nvc0_compute_validate_constbufs() 224 PUSH_DATA (push, nvc0->constbuf[s][i].size); in nvc0_compute_validate_constbufs() 225 PUSH_DATAh(push, res->address + nvc0->constbuf[s][i].offset); in nvc0_compute_validate_constbufs() 226 PUSH_DATA (push, res->address + nvc0->constbuf[s][i].offset); in nvc0_compute_validate_constbufs()
|
H A D | nvc0_state.c | 796 if (nvc0->constbuf[s][i].user) in nvc0_set_constant_buffer() 797 nvc0->constbuf[s][i].u.buf = NULL; in nvc0_set_constant_buffer() 799 if (nvc0->constbuf[s][i].u.buf) in nvc0_set_constant_buffer() 804 if (nvc0->constbuf[s][i].user) in nvc0_set_constant_buffer() 805 nvc0->constbuf[s][i].u.buf = NULL; in nvc0_set_constant_buffer() 807 if (nvc0->constbuf[s][i].u.buf) in nvc0_set_constant_buffer() 814 if (nvc0->constbuf[s][i].u.buf) in nvc0_set_constant_buffer() 815 nv04_resource(nvc0->constbuf[s][i].u.buf)->cb_bindings[s] &= ~(1 << i); in nvc0_set_constant_buffer() 818 pipe_resource_reference(&nvc0->constbuf[s][i].u.buf, NULL); in nvc0_set_constant_buffer() 819 nvc0->constbuf[ in nvc0_set_constant_buffer() [all...] |
H A D | nvc0_context.c | 129 if (nvc0->constbuf[s][i].user) in nvc0_memory_barrier() 132 res = nvc0->constbuf[s][i].u.buf; in nvc0_memory_barrier() 209 if (!nvc0->constbuf[s][i].user) in nvc0_context_unreference_resources() 210 pipe_resource_reference(&nvc0->constbuf[s][i].u.buf, NULL); in nvc0_context_unreference_resources() 353 if (!nvc0->constbuf[s][i].user && in nvc0_invalidate_resource_storage() 354 nvc0->constbuf[s][i].u.buf == res) { in nvc0_invalidate_resource_storage() 492 /* Do not bind the COMPUTE driver constbuf at screen initialization because in nvc0_create()
|
H A D | nvc0_state_validate.c | 586 if (nvc0->constbuf[s][i].user) { in nvc0_constbufs_validate() 589 const unsigned size = nvc0->constbuf[s][0].size; in nvc0_constbufs_validate() 591 assert(nvc0->constbuf[s][0].u.data); in nvc0_constbufs_validate() 602 nvc0->constbuf[s][0].u.data); in nvc0_constbufs_validate() 605 nv04_resource(nvc0->constbuf[s][i].u.buf); in nvc0_constbufs_validate() 608 nvc0->constbuf[s][i].size, in nvc0_constbufs_validate() 609 res->address + nvc0->constbuf[s][i].offset); in nvc0_constbufs_validate() 798 * it's a regular binding stored in the driver constbuf.
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ir3/ |
H A D | ir3_const.h | 157 struct fd_constbuf_stateobj *constbuf) in ir3_emit_user_consts() 165 if (!(constbuf->enabled_mask & (1 << ubo)) || in ir3_emit_user_consts() 169 struct pipe_constant_buffer *cb = &constbuf->cb[ubo]; in ir3_emit_user_consts() 205 struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) in ir3_emit_ubos() 228 struct pipe_constant_buffer *cb = &constbuf->cb[i]; in ir3_emit_ubos() 230 /* If we have user pointers (constbuf 0, aka GL uniforms), upload in ir3_emit_ubos() 231 * them to a buffer now, and save it in the constbuf so that we in ir3_emit_ubos() 241 if ((constbuf->enabled_mask & (1 << i)) && cb->buffer) { in ir3_emit_ubos() 415 struct fd_constbuf_stateobj *constbuf; variable 418 constbuf 154 ir3_emit_user_consts(struct fd_screen *screen, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) ir3_emit_user_consts() argument 204 ir3_emit_ubos(struct fd_context *ctx, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) ir3_emit_ubos() argument [all...] |
/third_party/mesa3d/src/gallium/drivers/nouveau/nv30/ |
H A D | nv30_fragprog.c | 84 * have no idea whether the constbuf changed in the meantime in nv30_fragprog_validate() 86 if (nv30->fragprog.constbuf) { in nv30_fragprog_validate() 87 struct pipe_resource *constbuf = nv30->fragprog.constbuf; in nv30_fragprog_validate() local 88 uint32_t *cbuf = (uint32_t *)nv04_resource(constbuf)->data; in nv30_fragprog_validate()
|
H A D | nv30_state.c | 350 pipe_resource_reference(&nv30->vertprog.constbuf, NULL); in nv30_set_constant_buffer() 351 nv30->vertprog.constbuf = buf; in nv30_set_constant_buffer() 353 pipe_resource_reference(&nv30->vertprog.constbuf, buf); in nv30_set_constant_buffer() 360 pipe_resource_reference(&nv30->fragprog.constbuf, NULL); in nv30_set_constant_buffer() 361 nv30->fragprog.constbuf = buf; in nv30_set_constant_buffer() 363 pipe_resource_reference(&nv30->fragprog.constbuf, buf); in nv30_set_constant_buffer()
|
H A D | nv30_vertprog.c | 175 struct nv04_resource *res = nv04_resource(nv30->vertprog.constbuf); in nv30_vertprog_validate() 184 float *constbuf = (float *)res->data; in nv30_vertprog_validate() local 186 !memcmp(data->value, &constbuf[data->index * 4], 16)) in nv30_vertprog_validate() 188 memcpy(data->value, &constbuf[data->index * 4], 16); in nv30_vertprog_validate()
|
H A D | nv30_context.h | 78 struct pipe_resource *constbuf; member 91 struct pipe_resource *constbuf; member
|
/third_party/mesa3d/src/gallium/frontends/d3d10umd/ |
H A D | ShaderParse.c | 309 opcode->customdata.u.constbuf.count = *curr - 2; in Shader_parse_opcode() 312 opcode->customdata.u.constbuf.data = MALLOC(opcode->customdata.u.constbuf.count * sizeof(unsigned)); in Shader_parse_opcode() 313 assert(opcode->customdata.u.constbuf.data); in Shader_parse_opcode() 315 memcpy(opcode->customdata.u.constbuf.data, in Shader_parse_opcode() 317 opcode->customdata.u.constbuf.count * sizeof(unsigned)); in Shader_parse_opcode() 318 curr += opcode->customdata.u.constbuf.count; in Shader_parse_opcode() 607 FREE(opcode->customdata.u.constbuf.data); in Shader_opcode_free()
|
H A D | ShaderParse.h | 57 struct dx10_imm_const_buf constbuf; member
|
/third_party/mesa3d/src/gallium/drivers/nouveau/nv50/ |
H A D | nv50_context.c | 81 if (nv50->constbuf[s][i].user) in nv50_memory_barrier() 84 res = nv50->constbuf[s][i].u.buf; in nv50_memory_barrier() 169 if (!nv50->constbuf[s][i].user) in nv50_context_unreference_resources() 170 pipe_resource_reference(&nv50->constbuf[s][i].u.buf, NULL); in nv50_context_unreference_resources() 275 if (!nv50->constbuf[s][i].user && in nv50_invalidate_resource_storage() 276 nv50->constbuf[s][i].u.buf == res) { in nv50_invalidate_resource_storage()
|
H A D | nv50_state.c | 889 if (nv50->constbuf[s][i].user) in nv50_set_constant_buffer() 890 nv50->constbuf[s][i].u.buf = NULL; in nv50_set_constant_buffer() 892 if (nv50->constbuf[s][i].u.buf) in nv50_set_constant_buffer() 897 if (nv50->constbuf[s][i].user) in nv50_set_constant_buffer() 898 nv50->constbuf[s][i].u.buf = NULL; in nv50_set_constant_buffer() 900 if (nv50->constbuf[s][i].u.buf) in nv50_set_constant_buffer() 907 if (nv50->constbuf[s][i].u.buf) in nv50_set_constant_buffer() 908 nv04_resource(nv50->constbuf[s][i].u.buf)->cb_bindings[s] &= ~(1 << i); in nv50_set_constant_buffer() 911 pipe_resource_reference(&nv50->constbuf[s][i].u.buf, NULL); in nv50_set_constant_buffer() 912 nv50->constbuf[ in nv50_set_constant_buffer() [all...] |
H A D | nv50_compute.c | 218 if (nv50->constbuf[s][i].user) { in nv50_compute_validate_constbufs() 221 unsigned words = nv50->constbuf[s][0].size / 4; in nv50_compute_validate_constbufs() 238 PUSH_DATAp(push, &nv50->constbuf[s][0].u.data[start * 4], nr); in nv50_compute_validate_constbufs() 245 nv04_resource(nv50->constbuf[s][i].u.buf); in nv50_compute_validate_constbufs() 253 PUSH_DATAh(push, res->address + nv50->constbuf[s][i].offset); in nv50_compute_validate_constbufs() 254 PUSH_DATA (push, res->address + nv50->constbuf[s][i].offset); in nv50_compute_validate_constbufs() 256 (nv50->constbuf[s][i].size & 0xffff)); in nv50_compute_validate_constbufs()
|
H A 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()
|
/third_party/mesa3d/src/mesa/state_tracker/ |
H A D | st_atom_constbuf.c | 157 gl_constant_value *constbuf = params->ParameterValues; in st_upload_constants() local 168 values[i] = constbuf[prog->info.inlinable_uniform_dw_offsets[i]].u; in st_upload_constants() 192 gl_constant_value *constbuf = params->ParameterValues; in st_upload_constants() local 195 values[i] = constbuf[prog->info.inlinable_uniform_dw_offsets[i]].u; in st_upload_constants()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a6xx/ |
H A D | fd6_const.c | 189 struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) in fd6_emit_ubos() 215 struct pipe_constant_buffer *cb = &constbuf->cb[i]; in fd6_emit_ubos() 217 /* If we have user pointers (constbuf 0, aka GL uniforms), upload them in fd6_emit_ubos() 218 * to a buffer now, and save it in the constbuf so that we don't have in fd6_emit_ubos() 288 &ctx->constbuf[types[i]]); in fd6_build_user_consts() 289 fd6_emit_ubos(ctx, variants[i], constobj, &ctx->constbuf[types[i]]); in fd6_build_user_consts() 346 fd6_emit_ubos(ctx, v, ring, &ctx->constbuf[PIPE_SHADER_COMPUTE]); in fd6_emit_cs_consts() 188 fd6_emit_ubos(struct fd_context *ctx, const struct ir3_shader_variant *v, struct fd_ringbuffer *ring, struct fd_constbuf_stateobj *constbuf) fd6_emit_ubos() argument
|
/third_party/mesa3d/src/gallium/drivers/svga/ |
H A D | svga_context.c | 70 for (shader = 0; shader < ARRAY_SIZE(svga->state.hw_draw.constbuf); shader++) { in svga_destroy() 71 for (i = 0; i < ARRAY_SIZE(svga->state.hw_draw.constbuf[0]); i++) { in svga_destroy() 72 pipe_resource_reference(&svga->state.hw_draw.constbuf[shader][i], NULL); in svga_destroy() 309 memset(svga->state.hw_draw.constbuf, 0, in svga_context_create() 310 sizeof(svga->state.hw_draw.constbuf)); in svga_context_create()
|
/third_party/mesa3d/src/gallium/tests/graw/ |
H A D | vs-test.c | 46 static struct pipe_resource *constbuf = NULL; variable 95 constbuf = screen->resource_create(screen, in init_fs_constbuf() 97 if (constbuf == NULL) in init_fs_constbuf() 103 ctx->buffer_subdata(ctx, constbuf, in init_fs_constbuf() 109 constbuf); in init_fs_constbuf()
|
/third_party/mesa3d/src/gallium/drivers/freedreno/a2xx/ |
H A D | fd2_emit.c | 52 struct fd_constbuf_stateobj *constbuf, in emit_constants() 55 uint32_t enabled_mask = constbuf->enabled_mask; in emit_constants() 62 struct pipe_constant_buffer *cb = &constbuf->cb[index]; in emit_constants() 201 &ctx->constbuf[PIPE_SHADER_VERTEX], in fd2_emit_state_binning() 365 &ctx->constbuf[PIPE_SHADER_VERTEX], in fd2_emit_state() 368 &ctx->constbuf[PIPE_SHADER_FRAGMENT], in fd2_emit_state() 51 emit_constants(struct fd_ringbuffer *ring, uint32_t base, struct fd_constbuf_stateobj *constbuf, struct fd2_shader_stateobj *shader) emit_constants() argument
|
/third_party/mesa3d/src/gallium/auxiliary/util/ |
H A D | u_tests.h | 42 struct pipe_resource *constbuf);
|
/third_party/mesa3d/src/gallium/drivers/freedreno/ |
H A D | freedreno_draw.c | 161 /* Mark constbuf as being read: */ 163 u_foreach_bit (i, ctx->constbuf[s].enabled_mask) 164 resource_read(batch, ctx->constbuf[s].cb[i].buffer); 551 u_foreach_bit (i, ctx->constbuf[PIPE_SHADER_COMPUTE].enabled_mask) 552 resource_read(batch, ctx->constbuf[PIPE_SHADER_COMPUTE].cb[i].buffer);
|
/third_party/mesa3d/src/gallium/drivers/r600/ |
H A D | r600_hw_context.c | 409 struct r600_constbuf_state *constbuf = &ctx->constbuf_state[shader]; in r600_begin_new_cs() local 412 constbuf->dirty_mask = constbuf->enabled_mask; in r600_begin_new_cs() 416 r600_constant_buffers_dirty(ctx, constbuf); in r600_begin_new_cs()
|
/third_party/mesa3d/src/gallium/drivers/vc4/ |
H A D | vc4_draw.c | 243 &vc4->constbuf[PIPE_SHADER_FRAGMENT], in vc4_emit_gl_shader_state() 246 &vc4->constbuf[PIPE_SHADER_VERTEX], in vc4_emit_gl_shader_state() 249 &vc4->constbuf[PIPE_SHADER_VERTEX], in vc4_emit_gl_shader_state()
|