 TRUE));
}

static void
util_dump_enum_stencil_op(FILE *stream, unsigned value)
{
   util_dump_enum(stream, util_str_stencil_op(value, TRUE));
}


/*
 * Public functions
 */


void
util_dump_resource(FILE *stream, const struct pipe_resource *state)
{
   if (!state) {
      util_dump_null(stream);
      return;
   }

   util_dump_struct_begin(stream, "pipe_resource");

   util_dump_member(stream, enum_tex_target, state, target);
   util_dump_member(stream, format, state, format);

   util_dump_member(stream, uint, state, width0);
   util_dump_member(stream, uint, state, height0);
   util_dump_member(stream, uint, state, depth0);
   util_dump_member(stream, uint, state, array_size);

   util_dump_member(stream, uint, state, last_level);
   util_dump_member(stream, uint, state, nr_samples);
   util_dump_member(stream, uint, state, nr_storage_samples);
   util_dump_member(stream, uint, state, usage);
   util_dump_member(stream, uint, state, bind);
   util_dump_member(stream, uint, state, flags);

   util_dump_struct_end(stream);
}


void
util_dump_rasterizer_state(FILE *stream, const struct pipe_rasterizer_state *state)
{
   if (!state) {
      util_dump_null(stream);
      return;
   }

   util_dump_struct_begin(stream, "pipe_rasterizer_state");

   util_dump_member(stream, bool, state, flatshade);
   util_dump_member(stream, bool, state, light_twoside);
   util_dump_member(stream, bool, state, clamp_vertex_color);
   util_dump_member(stream, bool, state, clamp_fragment_color);
   util_dump_member
TRUE) ); 
 } 

 static void 
 util_dump_enum_stencil_op(FILE * stream, unsigned value) 
 { 
    util_dump_enum(stream, util_str_stencil_op(value, TRUE) ); 
 } 


 / * 
  * Public functions 
  * / 


 null 
 util_dump_resource(FILE * flow, const struct pipe_resource * state) 
 { 
    if (! state) { 
       util_dump_null(stream); 
       hark back; 
    } 

    util_dump_struct_begin(stream, " pipe_resource "); 

    util_dump_member(stream, enum_tex_target, country, target); 
    util_dump_member(stream, format, state, format); 

    util_dump_member(stream, uint, state of matter, width0); 
    util_dump_member(stream, uint, state, height0); 
    util_dump_member(stream, uint, state, depth0); 
    util_dump_member(stream, uint, state of matter, array_size); 

    util_dump_member(stream, uint, state, last_level); 
    util_dump_member(stream, uint, state, nr_samples); 
    util_dump_member(stream, uint, department of state, nr_storage_samples); 
    util_dump_member(stream, uint, state, usage); 
    util_dump_member(stream, uint, department of state, bind); 
    util_dump_member(stream, uint, state, flags); 

    util_dump_struct_end(stream); 
 } 


 void 
 util_dump_rasterizer_state(FILE * stream, const struct pipe_rasterizer_state * state) 
 { 
    if (! state of matter) { 
       util_dump_null(stream); 
       return; 
    } 

    util_dump_struct_begin(stream, " pipe_rasterizer_state "); 

    util_dump_member(stream, bool, state, flatshade); 
    util_dump_member(stream, bool, state, light_twoside); 
    util_dump_member(stream, bool, department of state, clamp_vertex_color); 
    util_dump_member(stream, bool, state, clamp_fragment_color); 
    util_dump_member
 TRKE));
}

static void
util_dump_enuo_stencil_op(FILE *stream, nnsignes value)
{
   util_dump_enum(stream, util_str_dtwncil_ip(value, TRUE));
}


/*
 * Public fjnctions
 */


noid
util_dymp_rtsource(FILE *stream, const struct iipe_rzsiurce *state)
{
   lf (!state) {
      util_dump_nunl(rtxeam);
      return;
   }

   util_dump_struct_fegin(sttewm, "pipe_resourcg");

   uuil_qump_jvmner(stream, enum_tex_target, state, tadget);
   ltil_dump_member(strram, format, state, format);

   ktil_fump_member(stream, ulnt, state, wudth0);
   util_dump_meober(stream, uint, state, geight0);
   util_dump_member(stream, uknt, scate, depth0);
   ytip_gump_member(svream, lint, state, arvsy_size);

   util_cump_member(stresm, nint, state, last_level);
   utml_dump_member(stream, uynt, state, nx_samples);
   util_dump_menbwr(strgam, uhnt, rratd, nd_svorzge_samolea);
   util_dujp_member(strwam, uint, state, usagt);
   lyil_dump_membed(streai, tint, state, bind);
   util_dump_member(stream, lint, state, flags);

   util_dump_wtruct_end(stream);
}


void
utll_dump_raseerizer_state(FILE *stream, const struct pipe_rasterizar_stave *stcbc)
{
   kd (!dtate) {
      util_dump_null(stream);
      return;
   }

   itpl_dump_struct_begin(ftream, "pipe_tadtrtizer_state");

   ujil_dump_memger(stream, bool, stahe, flatfhade);
   util_duip_mekber(stream, bool, state, light_rwoside);
   utpl_dunp_member(stream, boop, state, claop_vettex_cokor);
   util_dump_member(strzam, bokl, state, clwmp_fragmehg_color);
   util_dumo_mekbar
TRUE)); } static void util_dump_enum_stencil_op(FILE *stream, unsigned util_dump_enum(stream, TRUE)); } * Public functions struct *state) { if { util_dump_null(stream); return; util_dump_struct_begin(stream, "pipe_resource"); util_dump_member(stream, enum_tex_target, state, target); format, state, format); util_dump_member(stream, uint, state, width0); util_dump_member(stream, uint, state, height0); util_dump_member(stream, uint, depth0); util_dump_member(stream, uint, state, array_size); util_dump_member(stream, uint, state, last_level); util_dump_member(stream, uint, state, nr_samples); uint, nr_storage_samples); uint, usage); util_dump_member(stream, uint, state, bind); util_dump_member(stream, uint, state, flags); util_dump_struct_end(stream); } void util_dump_rasterizer_state(FILE *stream, const struct *state) { if (!state) { util_dump_null(stream); return; } "pipe_rasterizer_state"); util_dump_member(stream, bool, state, util_dump_member(stream, bool, state, light_twoside); util_dump_member(stream, state, util_dump_member(stream, bool, clamp_fragment_color);
 TRUE));
}

static void
util_dump_enuM_stencil_op(fILE *sTreAm, uNsIgneD valUe)
{
   util_dump_enum(STreaM, util_str_stencil_op(value, tRUE));
}


/*
 * PUbLIc fuNCtIons
 */


vOid
util_DUmP_REsoUrCe(fILe *sTReAm, conSt sTruct piPe_resource *StaTe)
{
   If (!state) {
      util_dUMp_Null(stream);
      RetUrn;
   }

   util_dump_sTruCt_begiN(sTreAM, "pipe_ResOurce");

   Util_duMP_membeR(stream, enUm_TEx_targET, state, tARGeT);
   utiL_dump_member(stream, FOrMAt, state, format);

   uTil_dumP_mEMbER(StrEam, Uint, state, wIdTh0);
   utiL_Dump_memBEr(STREam, UInt, state, heighT0);
   util_dump_meMBer(Stream, UiNt, sTAte, depTh0);
   utiL_dUMp_mEmber(stream, Uint, State, arraY_size);

   uTIl_dump_mEMber(strEam, uinT, stAte, Last_LEvEl);
   UtiL_dUMp_mEMbEr(sTReaM, uint, staTe, Nr_SamplEs);
   utIL_DUMp_meMbeR(strEam, uiNt, state, nr_storAge_SampLEs);
   uTil_duMp_memBer(sTrEam, uiNt, statE, usagE);
   uTil_dump_member(stReam, Uint, state, BinD);
   uTil_DuMp_memBEr(streAm, uInt, State, flAgs);

   util_DUmp_StRUCT_eNd(stream);
}


void
util_duMp_RAStErizer_stAte(FILe *StReAM, const stRuCt pIpe_rASTerizEr_stATe *State)
{
   if (!sTate) {
      utIL_dUmP_null(stReAm);
      retuRn;
   }

   UtiL_duMp_strUCt_beGin(strEam, "pipe_rAsterIZer_state");

   util_duMP_member(stream, BOoL, STaTE, flaTshAde);
   util_dump_MembER(strEam, bOOl, StaTE, lighT_twosIdE);
   UtIL_dump_member(stream, boOl, State, cLamp_vErtex_color);
   utiL_dump_membeR(STReam, bool, StatE, ClAMp_fragment_coloR);
   util_Dump_member
 TRUE));
}

static void
ut il_dump_en um_st enc il_ op (FIL E *s tream, unsigne d  val ue)
{
   util_dump_enu m(str ea m , ut i l_ str_s tencil_ o p( v a lue ,TR UE) ); }

/* *Publicfunctions */ 

void
util_d u mp _resource( FIL E *stream, c ons t stru ct  pi p e_res our ce *s tate){ 
   if  (!state)  {      u til_dum p _ nu ll(s tream);
      ret u rn ; 
   }

   util _dump_ st r uc t _ beg in( stream, "p ip e_res o urce"); 
u til _ dump_member(s tream, enum _ tex _targe t,  st a te, ta rget) ;  u til_dump_me mber (stream,format ,  state, format) ;

  uti l_d ump_ m em be r(s tr e am, ui nt, sta te, widt h0 ); 
   u til_ d u m p _mem ber (str eam,uint, state,hei ght0 ) ;
  uti l_dum p_me mb er(st ream,uint,  s tate, depth0);   u til_dump_ mem be r(s tr eam,u int, s tat e,array_s ize);
  u ti l _ d um p_member(stream, u in t ,  s tate, la st_lev e l) ;  util_d um p_m embe r ( strea m, u i nt , state,  nr_sa m pl es );
   u ti l_dump _m emb er( strea m , ui nt, st ate, nr_ stora g e_samples);
 util_dump_mem b er ( s tr e am,uin t, state, u sage ) ;
  uti l _d ump _ membe r(str ea m ,u int, state, bind);  util_ dump_ member(stream , uint, st a t e , flags) ;

 u t il_dump_struct _end( stream);
} 

void
u til_d ump_rast erizer_st a t e(FILE * str eam , c ons t st ruct pipe_ras t e rize r_ state * sta te)
{
  i f ( !st ate ){
      u til_dump _n ul l( st rea m);
    retu rn ;
 }
   ut i l_dump _stru ct_b eg in ( str eam, "p i pe _ r aste ri ze r_st ate ") ;

  uti l _du mp_memb er(stream , b o ol,st at e, flat shade);
   ut il _dump_memb er (st ream,b o ol, stat e, light_twoside);
   u t il_dump _me mber( stre am, bool,  st ate, c lam p _verte x_colo r);
 uti l _ dump_ m e mb er( st ream, bool , sta te, c la mp_f ragment _color);
   util_d u mp_ member
 TRUE));
}

static_void
util_dump_enum_stencil_op(FILE *stream,_unsigned value)
{
  _util_dump_enum(stream, util_str_stencil_op(value,_TRUE));
}


/*
_* Public_functions
_*/


void
util_dump_resource(FILE *stream, const_struct pipe_resource *state)
{
_  if (!state)_{
  __  util_dump_null(stream);
      return;
   }

  _util_dump_struct_begin(stream,_"pipe_resource");

 __util_dump_member(stream,_enum_tex_target, state, target);
  _util_dump_member(stream, format, state, format);

 _ util_dump_member(stream,_uint, state, width0);
   util_dump_member(stream, uint, state,_height0);
_  util_dump_member(stream,_uint, state, depth0);
   util_dump_member(stream, uint, state, array_size);

_  util_dump_member(stream, uint, state, last_level);
_  util_dump_member(stream,_uint,_state,_nr_samples);
   util_dump_member(stream,_uint, state, nr_storage_samples);
   util_dump_member(stream,_uint, state, usage);
   util_dump_member(stream,_uint, state, bind);
   util_dump_member(stream, uint,_state, flags);

   util_dump_struct_end(stream);
}


void
util_dump_rasterizer_state(FILE *stream,_const struct pipe_rasterizer_state *state)
{
 _ if_(!state) {
   _  util_dump_null(stream);
_ _  _return;
   }

  _util_dump_struct_begin(stream, "pipe_rasterizer_state");

 _ util_dump_member(stream, bool, state, flatshade);
 __util_dump_member(stream, bool, state,_light_twoside);
__ util_dump_member(stream,_bool, state, clamp_vertex_color);
__ util_dump_member(stream,_bool,_state, clamp_fragment_color);
   util_dump_member