search for: out_ringf

Displaying 6 results from an estimated 6 matches for "out_ringf".

Did you mean: out_ring
2009 Apr 08
0
[PATCH/Gallium] nv50: update nv50_clear to new interface
....height; @@ -59,28 +88,30 @@ nv50_clear(struct pipe_context *pipe, struct pipe_surface *ps, nv50_state_validate(nv50); - switch (ps->format) { - case PIPE_FORMAT_A8R8G8B8_UNORM: + if (fb.nr_cbufs > 0) { + /* Does this clear all color buffers ? */ BEGIN_RING(chan, tesla, 0x0d80, 4); - OUT_RINGf (chan, ubyte_to_float((clearValue >> 16) & 0xff)); - OUT_RINGf (chan, ubyte_to_float((clearValue >> 8) & 0xff)); - OUT_RINGf (chan, ubyte_to_float((clearValue >> 0) & 0xff)); - OUT_RINGf (chan, ubyte_to_float((clearValue >> 24) & 0xff)); + OUT_RINGf (ch...
2009 Dec 30
4
[PATCH 1/3] nv50: remove vtxbuf stateobject after a referenced vtxbuf is mapped
- This avoids problematic "reloc'ed while mapped" messages and some associated corruption as well. Signed-off-by: Maarten Maathuis <madman2003 at gmail.com> --- src/gallium/drivers/nouveau/nouveau_screen.c | 21 +++++++++++++++++++++ src/gallium/drivers/nouveau/nouveau_screen.h | 3 +++ src/gallium/drivers/nouveau/nouveau_stateobj.h | 13 +++++++++++++
2009 Nov 04
1
[PATCH] nv10/exa: Spring-cleaning
...i texturing setup, where we do TEX0 in TEX1 (masking) is: + * Alpha RC 0 : a_0 * a_1 + 0 * 0 + * RGB RC0 : rgb_0 * a_1 + 0 * 0 + * RC 1s are unused + * Final combiner uses default setup + */ - BEGIN_RING(chan, celsius, NV10TCL_PROJECTION_MATRIX(0), 16); - for(i=0;i<16;i++) - if (i/4==i%4) - OUT_RINGf (chan, 1.0f); - else - OUT_RINGf (chan, 0.0f); +/* Bind the combiner variable <input> to a constant 1. */ +#define RC_IN_ONE(input) \ + (NV10TCL_RC_IN_RGB_##input##_INPUT_ZERO | \ + NV10TCL_RC_IN_RGB_##input##_COMPONENT_USAGE_ALPHA | \ + NV10TCL_RC_IN_RGB_##input##_MAPPING_UNSIGN...
2009 Nov 05
6
Some cosmetic NV10TCL method changes.
The attached patch does the cosmetic renouveau.xml changes I proposed. I'm about to reply myself with some other patches to update libdrm and then fix the API break up. -------------- next part -------------- A non-text attachment was scrubbed... Name: rename_some_nv10tcl_methods.patch Type: text/x-diff Size: 2507 bytes Desc: not available Url :
2013 Apr 30
1
[Bug 64074] New: Mesalib Installation Error
...tatic __inline__ void OUT_RING(struct nouveau_channel *chan, unsigned data) { *(chan->cur++) = (data); } static __inline__ void OUT_RINGp(struct nouveau_channel *chan, const void *data, unsigned size) { //memcpy(chan->cur, data, size * 4); //chan->cur += size; } static __inline__ void OUT_RINGf(struct nouveau_channel *chan, float f) { union { uint32_t i; float f; } c; c.f = f; OUT_RING(chan, c.i); } static __inline__ unsigned AVAIL_RING(struct nouveau_channel *chan) { return chan->end - chan->cur; //return NULL; } static __inline__ void WAIT_RING(struct nouveau_channel *chan,...
2010 Jan 29
2
[PATCH 1/2] libdrm/nouveau: new optimized libdrm pushbuffer ABI
...tatic __inline__ void OUT_RINGp(struct nouveau_channel *chan, const void *data, unsigned size) { - memcpy(chan->pushbuf->cur, data, size * 4); - chan->pushbuf->cur += size; + memcpy(chan->cur, data, size * 4); + chan->cur += size; } static __inline__ void @@ -88,13 +81,13 @@ OUT_RINGf(struct nouveau_channel *chan, float f) static __inline__ unsigned AVAIL_RING(struct nouveau_channel *chan) { - return chan->pushbuf->remaining; + return chan->end - chan->cur; } static __inline__ void WAIT_RING(struct nouveau_channel *chan, unsigned size) { - if (chan->pushb...