projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
595fbc8
)
svga: whitespace and formatting fixes in svga_pipe_depthstencil.c
author
Brian Paul
<brianp@vmware.com>
Fri, 15 Apr 2016 21:57:55 +0000
(15:57 -0600)
committer
Brian Paul
<brianp@vmware.com>
Mon, 25 Apr 2016 18:59:29 +0000
(12:59 -0600)
src/gallium/drivers/svga/svga_pipe_depthstencil.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/svga/svga_pipe_depthstencil.c
b/src/gallium/drivers/svga/svga_pipe_depthstencil.c
index 9ebb5d4b40564fef6aaf8f04749f386f08d478ba..fb7b556f6c41c574e04ffdd4d4293da874398e28 100644
(file)
--- a/
src/gallium/drivers/svga/svga_pipe_depthstencil.c
+++ b/
src/gallium/drivers/svga/svga_pipe_depthstencil.c
@@
-132,7
+132,7
@@
svga_create_depth_stencil_state(struct pipe_context *pipe,
const struct pipe_depth_stencil_alpha_state *templ)
{
struct svga_context *svga = svga_context(pipe);
const struct pipe_depth_stencil_alpha_state *templ)
{
struct svga_context *svga = svga_context(pipe);
- struct svga_depth_stencil_state *ds = CALLOC_STRUCT(
svga_depth_stencil_state
);
+ struct svga_depth_stencil_state *ds = CALLOC_STRUCT(
svga_depth_stencil_state
);
if (!ds)
return NULL;
if (!ds)
return NULL;
@@
-147,7
+147,7
@@
svga_create_depth_stencil_state(struct pipe_context *pipe,
ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op);
ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op);
ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op);
ds->stencil[0].fail = svga_translate_stencil_op(templ->stencil[0].fail_op);
ds->stencil[0].zfail = svga_translate_stencil_op(templ->stencil[0].zfail_op);
ds->stencil[0].pass = svga_translate_stencil_op(templ->stencil[0].zpass_op);
-
+
/* SVGA3D has one ref/mask/writemask triple shared between front &
* back face stencil. We really need two:
*/
/* SVGA3D has one ref/mask/writemask triple shared between front &
* back face stencil. We really need two:
*/
@@
-161,7
+161,6
@@
svga_create_depth_stencil_state(struct pipe_context *pipe,
ds->stencil[0].pass = SVGA3D_STENCILOP_KEEP;
}
ds->stencil[0].pass = SVGA3D_STENCILOP_KEEP;
}
-
ds->stencil[1].enabled = templ->stencil[1].enabled;
if (templ->stencil[1].enabled) {
assert(templ->stencil[0].enabled);
ds->stencil[1].enabled = templ->stencil[1].enabled;
if (templ->stencil[1].enabled) {
assert(templ->stencil[0].enabled);
@@
-210,8
+209,9
@@
svga_create_depth_stencil_state(struct pipe_context *pipe,
return ds;
}
return ds;
}
-static void svga_bind_depth_stencil_state(struct pipe_context *pipe,
- void *depth_stencil)
+
+static void
+svga_bind_depth_stencil_state(struct pipe_context *pipe, void *depth_stencil)
{
struct svga_context *svga = svga_context(pipe);
{
struct svga_context *svga = svga_context(pipe);
@@
-224,8
+224,9
@@
static void svga_bind_depth_stencil_state(struct pipe_context *pipe,
svga->dirty |= SVGA_NEW_DEPTH_STENCIL_ALPHA;
}
svga->dirty |= SVGA_NEW_DEPTH_STENCIL_ALPHA;
}
-static void svga_delete_depth_stencil_state(struct pipe_context *pipe,
- void *depth_stencil)
+
+static void
+svga_delete_depth_stencil_state(struct pipe_context *pipe, void *depth_stencil)
{
struct svga_context *svga = svga_context(pipe);
struct svga_depth_stencil_state *ds =
{
struct svga_context *svga = svga_context(pipe);
struct svga_depth_stencil_state *ds =
@@
-257,8
+258,9
@@
static void svga_delete_depth_stencil_state(struct pipe_context *pipe,
}
}
-static void svga_set_stencil_ref( struct pipe_context *pipe,
- const struct pipe_stencil_ref *stencil_ref )
+static void
+svga_set_stencil_ref(struct pipe_context *pipe,
+ const struct pipe_stencil_ref *stencil_ref)
{
struct svga_context *svga = svga_context(pipe);
{
struct svga_context *svga = svga_context(pipe);
@@
-272,6
+274,7
@@
static void svga_set_stencil_ref( struct pipe_context *pipe,
svga->dirty |= SVGA_NEW_STENCIL_REF;
}
svga->dirty |= SVGA_NEW_STENCIL_REF;
}
+
static void
svga_set_sample_mask(struct pipe_context *pipe,
unsigned sample_mask)
static void
svga_set_sample_mask(struct pipe_context *pipe,
unsigned sample_mask)
@@
-284,7
+287,8
@@
svga_set_sample_mask(struct pipe_context *pipe,
}
}
-void svga_init_depth_stencil_functions( struct svga_context *svga )
+void
+svga_init_depth_stencil_functions(struct svga_context *svga)
{
svga->pipe.create_depth_stencil_alpha_state = svga_create_depth_stencil_state;
svga->pipe.bind_depth_stencil_alpha_state = svga_bind_depth_stencil_state;
{
svga->pipe.create_depth_stencil_alpha_state = svga_create_depth_stencil_state;
svga->pipe.bind_depth_stencil_alpha_state = svga_bind_depth_stencil_state;
@@
-293,7
+297,3
@@
void svga_init_depth_stencil_functions( struct svga_context *svga )
svga->pipe.set_stencil_ref = svga_set_stencil_ref;
svga->pipe.set_sample_mask = svga_set_sample_mask;
}
svga->pipe.set_stencil_ref = svga_set_stencil_ref;
svga->pipe.set_sample_mask = svga_set_sample_mask;
}
-
-
-
-