projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f47c9b0
)
cso: handle depth clamp
author
Marek Olšák
<maraeo@gmail.com>
Wed, 21 Jul 2010 07:14:21 +0000
(09:14 +0200)
committer
Marek Olšák
<maraeo@gmail.com>
Wed, 21 Jul 2010 20:54:34 +0000
(22:54 +0200)
src/gallium/auxiliary/cso_cache/cso_context.c
patch
|
blob
|
history
diff --git
a/src/gallium/auxiliary/cso_cache/cso_context.c
b/src/gallium/auxiliary/cso_cache/cso_context.c
index c1662df6ab17eeee1d9cd78eb7a7a3ea8f30aae1..58b022d531db97916aeb1948b9f638ba9c8cb9dc 100644
(file)
--- 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;
}