llvmpipe: add DEBUG_FS to dump variant information

This commit is contained in:
Keith Whitwell 2010-09-16 15:16:27 +01:00
parent 5f00819cb3
commit 0986355425
3 changed files with 3 additions and 1 deletions

View file

@ -49,6 +49,7 @@ st_print_current(void);
#define DEBUG_SCENE 0x1000
#define DEBUG_FENCE 0x2000
#define DEBUG_MEM 0x4000
#define DEBUG_FS 0x8000
/* Performance flags. These are active even on release builds.
*/

View file

@ -64,6 +64,7 @@ static const struct debug_named_value lp_debug_flags[] = {
{ "scene", DEBUG_SCENE, NULL },
{ "fence", DEBUG_FENCE, NULL },
{ "mem", DEBUG_MEM, NULL },
{ "fs", DEBUG_FS, NULL },
DEBUG_NAMED_VALUE_END
};
#endif

View file

@ -865,7 +865,7 @@ generate_variant(struct llvmpipe_context *lp,
? TRUE : FALSE;
if (gallivm_debug & GALLIVM_DEBUG_IR) {
if ((LP_DEBUG & DEBUG_FS) || (gallivm_debug & GALLIVM_DEBUG_IR)) {
lp_debug_fs_variant(variant);
}