OSDN Git Service

Merge branch 'master' into instanced-arrays
authorMichal Krol <michal@vmware.com>
Tue, 5 Jan 2010 10:04:50 +0000 (11:04 +0100)
committerMichal Krol <michal@vmware.com>
Tue, 5 Jan 2010 10:04:50 +0000 (11:04 +0100)
Conflicts:
src/gallium/auxiliary/tgsi/tgsi_dump.c
src/gallium/include/pipe/p_shader_tokens.h

13 files changed:
1  2 
src/gallium/auxiliary/draw/draw_context.h
src/gallium/auxiliary/draw/draw_private.h
src/gallium/auxiliary/draw/draw_pt_fetch_shade_pipeline.c
src/gallium/auxiliary/draw/draw_vs_varient.c
src/gallium/auxiliary/tgsi/tgsi_dump.c
src/gallium/auxiliary/tgsi/tgsi_ureg.c
src/gallium/auxiliary/tgsi/tgsi_ureg.h
src/gallium/drivers/softpipe/sp_context.c
src/gallium/drivers/softpipe/sp_draw_arrays.c
src/gallium/drivers/softpipe/sp_state.h
src/gallium/drivers/svga/svga_state_vs.c
src/gallium/include/pipe/p_context.h
src/gallium/include/pipe/p_shader_tokens.h

@@@ -123,7 -123,7 +123,8 @@@ static const char *semantic_names[] 
     "NORMAL",
     "FACE",
     "EDGEFLAG",
 -   "PRIM_ID"
++   "PRIM_ID",
 +   "INSTANCEID"
  };
  
  static const char *immediate_type_names[] =
@@@ -220,11 -123,13 +230,14 @@@ softpipe_draw_range_elements_instanced(
     struct draw_context *draw = sp->draw;
     unsigned i;
  
+    if (!softpipe_check_render_cond(sp))
+       return TRUE;
     sp->reduced_api_prim = u_reduced_prim(mode);
  
 -   if (sp->dirty)
 -      softpipe_update_derived( sp );
 +   if (sp->dirty) {
 +      softpipe_update_derived(sp);
 +   }
  
     softpipe_map_transfers(sp);
     softpipe_map_constant_buffers(sp);
Simple merge
@@@ -121,17 -121,17 +121,18 @@@ struct tgsi_declaration_rang
     unsigned Last    : 16; /**< UINT */
  };
  
- #define TGSI_SEMANTIC_POSITION 0
- #define TGSI_SEMANTIC_COLOR    1
- #define TGSI_SEMANTIC_BCOLOR   2 /**< back-face color */
- #define TGSI_SEMANTIC_FOG      3
- #define TGSI_SEMANTIC_PSIZE    4
- #define TGSI_SEMANTIC_GENERIC  5
- #define TGSI_SEMANTIC_NORMAL   6
- #define TGSI_SEMANTIC_FACE     7
- #define TGSI_SEMANTIC_EDGEFLAG 8
- #define TGSI_SEMANTIC_INSTANCEID 9
- #define TGSI_SEMANTIC_COUNT      10 /**< number of semantic values */
 -#define TGSI_SEMANTIC_POSITION  0
 -#define TGSI_SEMANTIC_COLOR     1
 -#define TGSI_SEMANTIC_BCOLOR    2 /**< back-face color */
 -#define TGSI_SEMANTIC_FOG       3
 -#define TGSI_SEMANTIC_PSIZE     4
 -#define TGSI_SEMANTIC_GENERIC   5
 -#define TGSI_SEMANTIC_NORMAL    6
 -#define TGSI_SEMANTIC_FACE      7
 -#define TGSI_SEMANTIC_EDGEFLAG  8
 -#define TGSI_SEMANTIC_PRIMID    9
 -#define TGSI_SEMANTIC_COUNT    10 /**< number of semantic values */
++#define TGSI_SEMANTIC_POSITION   0
++#define TGSI_SEMANTIC_COLOR      1
++#define TGSI_SEMANTIC_BCOLOR     2  /**< back-face color */
++#define TGSI_SEMANTIC_FOG        3
++#define TGSI_SEMANTIC_PSIZE      4
++#define TGSI_SEMANTIC_GENERIC    5
++#define TGSI_SEMANTIC_NORMAL     6
++#define TGSI_SEMANTIC_FACE       7
++#define TGSI_SEMANTIC_EDGEFLAG   8
++#define TGSI_SEMANTIC_PRIMID     9
++#define TGSI_SEMANTIC_INSTANCEID 10
++#define TGSI_SEMANTIC_COUNT      11 /**< number of semantic values */
  
  struct tgsi_declaration_semantic
  {