search for: ubyte_to_float

Displaying 1 result from an estimated 1 matches for "ubyte_to_float".

2009 Apr 08
0
[PATCH/Gallium] nv50: update nv50_clear to new interface
...8 +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 (chan, rgba[0]); + OUT_R...