search for: pipe_clear_color0

Displaying 5 results from an estimated 5 matches for "pipe_clear_color0".

Did you mean: pipe_clear_color
2014 Jan 17
2
[PATCH] nv50, nvc0: only clear out the buffers that we were asked to clear
...USH_DATA (push, mode); - - for (i = 1; i < fb->nr_cbufs; i++) { + if (mode) { BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); - PUSH_DATA (push, (i << 6) | 0x3c); + PUSH_DATA (push, mode); + } + + for (i = 0; i < fb->nr_cbufs; i++) { + if (buffers & (PIPE_CLEAR_COLOR0 << i)) { + BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); + PUSH_DATA (push, (i << 6) | 0x3c); + } } } diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c index 5375bd4..0c12bce 100644 --- a/src/gallium...
2014 Jan 23
2
[Mesa-dev] [PATCH] nv50, nvc0: only clear out the buffers that we were asked to clear
...>> + if (mode) { >> BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); >> - PUSH_DATA (push, (i << 6) | 0x3c); >> + PUSH_DATA (push, mode); >> + } >> + >> + for (i = 0; i < fb->nr_cbufs; i++) { >> + if (buffers & (PIPE_CLEAR_COLOR0 << i)) { >> + BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); >> + PUSH_DATA (push, (i << 6) | 0x3c); >> + } >> } >> } >> >> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/n...
2014 Jan 23
0
[Mesa-dev] [PATCH] nv50, nvc0: only clear out the buffers that we were asked to clear
...i < fb->nr_cbufs; i++) { > + if (mode) { > BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); > - PUSH_DATA (push, (i << 6) | 0x3c); > + PUSH_DATA (push, mode); > + } > + > + for (i = 0; i < fb->nr_cbufs; i++) { > + if (buffers & (PIPE_CLEAR_COLOR0 << i)) { > + BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); > + PUSH_DATA (push, (i << 6) | 0x3c); > + } > } > } > > diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c > index 5...
2014 Jan 23
0
[Mesa-dev] [PATCH] nv50, nvc0: only clear out the buffers that we were asked to clear
...;>> BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); >>> - PUSH_DATA (push, (i << 6) | 0x3c); >>> + PUSH_DATA (push, mode); >>> + } >>> + >>> + for (i = 0; i < fb->nr_cbufs; i++) { >>> + if (buffers & (PIPE_CLEAR_COLOR0 << i)) { >>> + BEGIN_NV04(push, NV50_3D(CLEAR_BUFFERS), 1); >>> + PUSH_DATA (push, (i << 6) | 0x3c); >>> + } >>> } >>> } >>> >>> diff --git a/src/gallium/drivers/nouveau/nvc0/nvc0_surface.c b/src/ga...
2014 Jan 15
3
[PATCH] nv50, nvc0: don't crash on a null cbuf
This is needed since commit 9baa45f78b (st/mesa: bind NULL colorbuffers as specified by glDrawBuffers). Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu> --- Not sure whether something needs to be done to clear out the old RT_* settings for that index buffer, or if things are cleared out implicitly. Perhaps instead of skipping indices, RT_CONTROL needs to be adjusted with the