diff options
author | Marek Olšák <[email protected]> | 2010-07-21 09:14:21 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2010-07-21 22:54:34 +0200 |
commit | 4460e9f0a1931c74ea364f19d7b1c458b6bc62d4 (patch) | |
tree | 20c67c98e9d9aa2625700a221cee4a22dba1334e /src/gallium | |
parent | f47c9b088056e25a0a007b16045631df70001c8f (diff) |
cso: handle depth clamp
Diffstat (limited to 'src/gallium')
-rw-r--r-- | src/gallium/auxiliary/cso_cache/cso_context.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index c1662df6ab1..58b022d531d 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++ b/src/gallium/auxiliary/cso_cache/cso_context.c @@ -1032,6 +1032,7 @@ static INLINE void clip_state_cpy(struct pipe_clip_state *dst, const struct pipe_clip_state *src) { + dst->depth_clamp = src->depth_clamp; dst->nr = src->nr; if (src->nr) { memcpy(dst->ucp, src->ucp, src->nr * sizeof(src->ucp[0])); @@ -1042,6 +1043,9 @@ static INLINE int clip_state_cmp(const struct pipe_clip_state *a, const struct pipe_clip_state *b) { + if (a->depth_clamp != b->depth_clamp) { + return 1; + } if (a->nr != b->nr) { return 1; } |