diff options
author | Zack Rusin <zackr@vmware.com> | 2009-09-09 17:14:21 -0400 |
---|---|---|
committer | Zack Rusin <zackr@vmware.com> | 2009-09-10 17:21:06 -0400 |
commit | feb74e7753f56c0fa3ec943a45bbf48f2183e04c (patch) | |
tree | df6577fac7f2230b9202a23ff5e2720bd1e78195 /src/gallium/state_trackers/xorg/xorg_exa.c | |
parent | 57d0934bc562c7a0de0c79fb0263ab3569eed002 (diff) |
st/xorg: implement pipelines surface/texture copies
Diffstat (limited to 'src/gallium/state_trackers/xorg/xorg_exa.c')
-rw-r--r-- | src/gallium/state_trackers/xorg/xorg_exa.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/gallium/state_trackers/xorg/xorg_exa.c b/src/gallium/state_trackers/xorg/xorg_exa.c index d3e7607cc3..e40f9f1f6b 100644 --- a/src/gallium/state_trackers/xorg/xorg_exa.c +++ b/src/gallium/state_trackers/xorg/xorg_exa.c @@ -83,6 +83,16 @@ exa_get_pipe_format(int depth, enum pipe_format *format, int *bbp) } static void +xorg_exa_init_state(struct exa_context *exa) +{ + struct pipe_depth_stencil_alpha_state dsa; + + /* set common initial clip state */ + memset(&dsa, 0, sizeof(struct pipe_depth_stencil_alpha_state)); + cso_set_depth_stencil_alpha(exa->cso, &dsa); +} + +static void xorg_exa_common_done(struct exa_context *exa) { exa->copy.src = NULL; @@ -723,6 +733,8 @@ xorg_exa_init(ScrnInfoPtr pScrn) exa->cso = cso_create_context(exa->ctx); exa->shaders = xorg_shaders_create(exa); + xorg_exa_init_state(exa); + return (void *)exa; out_err: |