util: Add function to dump PIPE_STENCIL_OP_xxx

This commit is contained in:
José Fonseca 2010-05-09 21:17:46 +01:00
parent 5326e1846d
commit 994e45de49
2 changed files with 30 additions and 0 deletions

View File

@ -73,6 +73,9 @@ util_dump_blend_func(unsigned value, boolean shortened);
const char *
util_dump_func(unsigned value, boolean shortened);
const char *
util_dump_stencil_op(unsigned value, boolean shortened);
const char *
util_dump_tex_target(unsigned value, boolean shortened);

View File

@ -186,6 +186,33 @@ util_dump_func_short_names[] = {
DEFINE_UTIL_DUMP_CONTINUOUS(func)
static const char *
util_dump_stencil_op_names[] = {
"PIPE_STENCIL_OP_KEEP",
"PIPE_STENCIL_OP_ZERO",
"PIPE_STENCIL_OP_REPLACE",
"PIPE_STENCIL_OP_INCR",
"PIPE_STENCIL_OP_DECR",
"PIPE_STENCIL_OP_INCR_WRAP",
"PIPE_STENCIL_OP_DECR_WRAP",
"PIPE_STENCIL_OP_INVERT"
};
static const char *
util_dump_stencil_op_short_names[] = {
"keep",
"zero",
"replace",
"incr",
"decr",
"incr_wrap",
"decr_wrap",
"invert"
};
DEFINE_UTIL_DUMP_CONTINUOUS(stencil_op)
static const char *
util_dump_tex_target_names[] = {
"PIPE_TEXTURE_1D",