summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/ilo/ilo_shader.c
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2013-06-20 11:36:36 +0800
committerChia-I Wu <[email protected]>2013-06-20 11:36:54 +0800
commit8b2cba8f97cf7df428fc91098ebacfac749a31b0 (patch)
treed020f9f2955c35eaee538d292f0b62f1047800be /src/gallium/drivers/ilo/ilo_shader.c
parentffebefa11424411d7e54a3a1223fe87a2de6e596 (diff)
ilo: rename cache_seqno to uploaded
It has been used as a bool since shader cache rework.
Diffstat (limited to 'src/gallium/drivers/ilo/ilo_shader.c')
-rw-r--r--src/gallium/drivers/ilo/ilo_shader.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/gallium/drivers/ilo/ilo_shader.c b/src/gallium/drivers/ilo/ilo_shader.c
index 90682d291a2..584e1301f35 100644
--- a/src/gallium/drivers/ilo/ilo_shader.c
+++ b/src/gallium/drivers/ilo/ilo_shader.c
@@ -74,7 +74,7 @@ ilo_shader_cache_add(struct ilo_shader_cache *shc,
shader->cache = shc;
LIST_FOR_EACH_ENTRY(sh, &shader->variants, list)
- sh->cache_seqno = false;
+ sh->uploaded = false;
list_add(&shader->list, &shc->changed);
}
@@ -118,7 +118,7 @@ ilo_shader_cache_upload_shader(struct ilo_shader_cache *shc,
LIST_FOR_EACH_ENTRY(sh, &shader->variants, list) {
int err;
- if (incremental && sh->cache_seqno)
+ if (incremental && sh->uploaded)
continue;
/* kernels must be aligned to 64-byte */
@@ -128,7 +128,7 @@ ilo_shader_cache_upload_shader(struct ilo_shader_cache *shc,
if (unlikely(err))
return -1;
- sh->cache_seqno = true;
+ sh->uploaded = true;
sh->cache_offset = offset;
offset += sh->kernel_size;
@@ -154,7 +154,7 @@ ilo_shader_cache_get_upload_size(struct ilo_shader_cache *shc,
/* see ilo_shader_cache_upload_shader() */
LIST_FOR_EACH_ENTRY(sh, &shader->variants, list) {
- if (!incremental || !sh->cache_seqno)
+ if (!incremental || !sh->uploaded)
offset = align(offset, 64) + sh->kernel_size;
}
}
@@ -165,7 +165,7 @@ ilo_shader_cache_get_upload_size(struct ilo_shader_cache *shc,
/* see ilo_shader_cache_upload_shader() */
LIST_FOR_EACH_ENTRY(sh, &shader->variants, list) {
- if (!incremental || !sh->cache_seqno)
+ if (!incremental || !sh->uploaded)
offset = align(offset, 64) + sh->kernel_size;
}
}