summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_state_fs.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2010-06-03 14:22:41 +0100
committerJosé Fonseca <jfonseca@vmware.com>2010-06-03 14:32:56 +0100
commit81862bbbc82341b1271fc4bc7b803d409826aeba (patch)
treebb0f844edf62a234d418aeae6492c7f9896e9ae1 /src/gallium/drivers/llvmpipe/lp_state_fs.h
parent55948247ebd6b37b9ac1869992eb2f765dd62912 (diff)
llvmpipe: Number shaders/variants for more reproducible function names in the IR.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_state_fs.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_state_fs.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_state_fs.h b/src/gallium/drivers/llvmpipe/lp_state_fs.h
index 1d9279e58a..64ead2a997 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_fs.h
+++ b/src/gallium/drivers/llvmpipe/lp_state_fs.h
@@ -76,6 +76,9 @@ struct lp_fragment_shader_variant
lp_jit_frag_func jit_function[2];
struct lp_fragment_shader_variant *next;
+
+ /* For debugging/profiling purposes */
+ unsigned no;
};
@@ -87,6 +90,10 @@ struct lp_fragment_shader
struct tgsi_shader_info info;
struct lp_fragment_shader_variant *variants;
+
+ /* For debugging/profiling purposes */
+ unsigned no;
+ unsigned variant_no;
};