Searched refs:constbuf (Results 1 - 16 of 16) sorted by relevance

/external/mesa3d/src/gallium/drivers/nv30/
H A Dnv30_fragprog.c78 * have no idea whether the constbuf changed in the meantime
80 if (nv30->fragprog.constbuf) {
81 struct pipe_resource *constbuf = nv30->fragprog.constbuf; local
82 uint32_t *cbuf = (uint32_t *)nv04_resource(constbuf)->data;
H A Dnv30_vertprog.c172 struct nv04_resource *res = nv04_resource(nv30->vertprog.constbuf);
181 float *constbuf = (float *)res->data; local
183 !memcmp(data->value, &constbuf[data->index * 4], 16))
185 memcpy(data->value, &constbuf[data->index * 4], 16);
H A Dnv30_context.h75 struct pipe_resource *constbuf; member in struct:nv30_context::__anon13991
88 struct pipe_resource *constbuf; member in struct:nv30_context::__anon13992
H A Dnv30_draw.c398 if (nv30->vertprog.constbuf) {
399 void *map = nv04_resource(nv30->vertprog.constbuf)->data;
H A Dnv30_state.c337 pipe_resource_reference(&nv30->vertprog.constbuf, buf);
342 pipe_resource_reference(&nv30->fragprog.constbuf, buf);
/external/mesa3d/src/gallium/auxiliary/postprocess/
H A Dpp_mlaa.c59 static struct pipe_resource *constbuf, *areamaptex; variable in typeref:struct:pipe_resource
68 pipe->transfer_inline_write(pipe, constbuf, 0, PIPE_TRANSFER_WRITE,
102 pipe_set_constant_buffer(p->pipe, PIPE_SHADER_VERTEX, 0, constbuf);
103 pipe_set_constant_buffer(p->pipe, PIPE_SHADER_FRAGMENT, 0, constbuf);
218 constbuf = pipe_buffer_create(ppq->p->screen, PIPE_BIND_CONSTANT_BUFFER,
220 if (!constbuf) {
/external/mesa3d/src/gallium/tests/graw/
H A Dvs-test.c46 static struct pipe_resource *constbuf = NULL; variable in typeref:struct:pipe_resource
95 constbuf = screen->resource_create(screen,
97 if (constbuf == NULL)
104 constbuf,
115 constbuf);
/external/mesa3d/src/gallium/drivers/nv50/
H A Dnv50_context.c90 if (!nv50->constbuf[s][i].user)
91 pipe_resource_reference(&nv50->constbuf[s][i].u.buf, NULL);
H A Dnv50_state.c760 if (nv50->constbuf[s][i].user)
761 nv50->constbuf[s][i].u.buf = NULL;
763 if (nv50->constbuf[s][i].u.buf)
766 pipe_resource_reference(&nv50->constbuf[s][i].u.buf, res);
768 nv50->constbuf[s][i].user = (cb && cb->user_buffer) ? TRUE : FALSE;
769 if (nv50->constbuf[s][i].user) {
770 nv50->constbuf[s][i].u.data = cb->user_buffer;
771 nv50->constbuf[s][i].size = cb->buffer_size;
775 nv50->constbuf[s][i].offset = cb->buffer_offset;
776 nv50->constbuf[
[all...]
H A Dnv50_shader_state.c52 if (nv50->constbuf[s][i].user) {
55 unsigned words = nv50->constbuf[s][0].size / 4;
77 PUSH_DATAp(push, &nv50->constbuf[s][0].u.data[start * 4], nr);
84 nv04_resource(nv50->constbuf[s][i].u.buf);
92 PUSH_DATAh(push, res->address + nv50->constbuf[s][i].offset);
93 PUSH_DATA (push, res->address + nv50->constbuf[s][i].offset);
95 (nv50->constbuf[s][i].size & 0xffff));
H A Dnv50_context.h118 struct nv50_constbuf constbuf[3][NV50_MAX_PIPE_CONSTBUFS]; member in struct:nv50_context
/external/mesa3d/src/gallium/drivers/nvc0/
H A Dnvc0_context.c76 if (!nvc0->constbuf[s][i].user)
77 pipe_resource_reference(&nvc0->constbuf[s][i].u.buf, NULL);
H A Dnvc0_state_validate.c365 if (nvc0->constbuf[s][i].user) {
368 const unsigned size = nvc0->constbuf[s][0].size;
370 assert(nvc0->constbuf[s][0].u.data);
385 nvc0->constbuf[s][0].u.data);
388 nv04_resource(nvc0->constbuf[s][i].u.buf);
391 PUSH_DATA (push, nvc0->constbuf[s][i].size);
392 PUSH_DATAh(push, res->address + nvc0->constbuf[s][i].offset);
393 PUSH_DATA (push, res->address + nvc0->constbuf[s][i].offset);
H A Dnvc0_state.c658 if (nvc0->constbuf[s][i].user)
659 nvc0->constbuf[s][i].u.buf = NULL;
661 if (nvc0->constbuf[s][i].u.buf)
664 pipe_resource_reference(&nvc0->constbuf[s][i].u.buf, res);
666 nvc0->constbuf[s][i].user = (cb && cb->user_buffer) ? TRUE : FALSE;
667 if (nvc0->constbuf[s][i].user) {
668 nvc0->constbuf[s][i].u.data = cb->user_buffer;
669 nvc0->constbuf[s][i].size = cb->buffer_size;
672 nvc0->constbuf[s][i].offset = cb->buffer_offset;
673 nvc0->constbuf[
[all...]
H A Dnvc0_context.h106 uint8_t c14_bound; /* whether immediate array constbuf is bound */
124 struct nvc0_constbuf constbuf[5][NVC0_MAX_PIPE_CONSTBUFS]; member in struct:nvc0_context
/external/mesa3d/src/gallium/auxiliary/tgsi/
H A Dtgsi_exec.c1066 const uint constbuf = index2D->i[i]; local
1067 const uint *buf = (const uint *)mach->Consts[constbuf];
1070 if (pos < 0 || pos >= mach->ConstsSize[constbuf]) {

Completed in 855 milliseconds