projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
st/mesa: fix glCopyPixels bugs/crashes when src region need clipping
[mesa.git]
/
src
/
gallium
/
drivers
/
nv30
/
nv30_clear.c
diff --git
a/src/gallium/drivers/nv30/nv30_clear.c
b/src/gallium/drivers/nv30/nv30_clear.c
index 8c3ca204d586912aa2ce86735a00bdcd6186e0b0..c4ba9266647c1c8ca4973cf8055d283bd6c2e193 100644
(file)
--- a/
src/gallium/drivers/nv30/nv30_clear.c
+++ b/
src/gallium/drivers/nv30/nv30_clear.c
@@
-1,13
+1,14
@@
#include "pipe/p_context.h"
#include "pipe/p_defines.h"
#include "pipe/p_state.h"
#include "pipe/p_context.h"
#include "pipe/p_defines.h"
#include "pipe/p_state.h"
+#include "util/u_clear.h"
#include "nv30_context.h"
void
#include "nv30_context.h"
void
-nv30_clear(struct pipe_context *pipe,
struct pipe_surface *p
s,
-
unsigned clearValue
)
+nv30_clear(struct pipe_context *pipe,
unsigned buffer
s,
+
const float *rgba, double depth, unsigned stencil
)
{
{
- pipe->surface_fill(pipe, ps, 0, 0, ps->width, ps->height, clearValue);
-
ps->status = PIPE_SURFACE_STATUS_CLEAR
;
+ util_clear(pipe, &nv30_context(pipe)->framebuffer, buffers, rgba, depth,
+
stencil)
;
}
}