Users will downcast if they don't have >32 debug flags.
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include <string.h>
#include <stdlib.h>
#include <stdbool.h>
#include "main/macros.h"
#include "main/mtypes.h"
#include "main/cpuinfo.h"
#include "main/macros.h"
#include "main/mtypes.h"
#include "main/cpuinfo.h"
driParseDebugString( const char * debug,
const struct dri_debug_control * control )
{
driParseDebugString( const char * debug,
const struct dri_debug_control * control )
{
if ( debug != NULL ) {
while( control->string != NULL ) {
if ( !strcmp( debug, "all" ) ||
if ( debug != NULL ) {
while( control->string != NULL ) {
if ( !strcmp( debug, "all" ) ||
struct dri_debug_control {
const char * string;
struct dri_debug_control {
const char * string;
-extern unsigned driParseDebugString( const char * debug,
+extern uint64_t driParseDebugString( const char * debug,
const struct dri_debug_control * control );
extern unsigned driGetRendererString( char * buffer,
const struct dri_debug_control * control );
extern unsigned driGetRendererString( char * buffer,