intel: Clean up chipset name and gen num for Ironlake
PATCH 1/2 intel: Clean up chipset name and gen num for Ironlake
Rename old IGDNG to Ironlake, and set 'gen' number for Ironlake as 5, so tracking the features with generation num instead of special is_ironlake flag.
Signed-off-by Zhenyu Wang <[email protected]>
--- src/mesa/drivers/dri/i965/brw_clip.c | 6 +- src/mesa/drivers/dri/i965/brw_clip_state.c | 4 +- src/mesa/drivers/dri/i965/brw_clip_tri.c | 2 +- src/mesa/drivers/dri/i965/brw_clip_util.c | 4 +- src/mesa/drivers/dri/i965/brw_context.c | 4 +- src/mesa/drivers/dri/i965/brw_defines.h | 10 +- src/mesa/drivers/dri/i965/brw_draw_upload.c | 4 +- src/mesa/drivers/dri/i965/brw_eu_emit.c | 154 +++++++++++++------------- src/mesa/drivers/dri/i965/brw_gs.c | 2 +- src/mesa/drivers/dri/i965/brw_gs_state.c | 2 +- src/mesa/drivers/dri/i965/brw_misc_state.c | 8 +- src/mesa/drivers/dri/i965/brw_sf_emit.c | 4 +- src/mesa/drivers/dri/i965/brw_sf_state.c | 4 +- src/mesa/drivers/dri/i965/brw_structs.h | 18 ++-- src/mesa/drivers/dri/i965/brw_tex_layout.c | 2 +- src/mesa/drivers/dri/i965/brw_urb.c | 2 +- src/mesa/drivers/dri/i965/brw_vs_emit.c | 8 +- src/mesa/drivers/dri/i965/brw_vs_state.c | 6 +- src/mesa/drivers/dri/i965/brw_wm_emit.c | 18 ++-- src/mesa/drivers/dri/i965/brw_wm_glsl.c | 2 +- src/mesa/drivers/dri/i965/brw_wm_state.c | 4 +- src/mesa/drivers/dri/intel/intel_chipset.h | 4 +- src/mesa/drivers/dri/intel/intel_context.c | 21 ++-- src/mesa/drivers/dri/intel/intel_context.h | 1 - 24 files changed, 146 insertions(+), 148 deletions(-)
src/mesa/drivers/dri/i965/brw_clip.c +3 -3
@@ -72,7 +72,7 @@ static void compile_clip_prog( struct brw_context *brw,*/ c.header_position_offset =ATTR_SIZE ; -if (intel->is_ironlake) +if (intel->gen ==5 ) delta =3 *REG_SIZE ;else delta =REG_SIZE ;
@@ -85,7 +85,7 @@ static void compile_clip_prog( struct brw_context *brw, c.nr_attrs =brw_count_bits (c.key.attrs); -if (intel->is_ironlake) +if (intel->gen ==5 ) c.nr_regs = (c.nr_attrs +1 ) /2 +3 ;/* are vertices packed, or reg-aligned? */ else c.nr_regs = (c.nr_attrs +1 ) /2 +1 ;/* are vertices packed, or reg-aligned? */
@@ -162,7 +162,7 @@ static void upload_clip_prog(struct brw_context *brw)/* _NEW_TRANSFORM */ key.nr_userclip =brw_count_bits (ctx->Transform.ClipPlanesEnabled); -if (intel->is_ironlake) +if (intel->gen ==5 ) key.clip_mode =BRW_CLIPMODE_KERNEL_CLIP ;else key.clip_mode =BRW_CLIPMODE_NORMAL ;
src/mesa/drivers/dri/i965/brw_clip_state.c +2 -2
@@ -102,10 +102,10 @@ clip_unit_create_from_key(struct brw_context *brw,*/ assert (key->nr_urb_entries %2 ==0 ); -/* Although up to 16 concurrent Clip threads are allowed on IGDNG, +/* Although up to 16 concurrent Clip threads are allowed on Ironlake, * only 2 threads can output VUEs at a time. */ -if (intel->is_ironlake) +if (intel->gen ==5 ) clip.thread4.max_threads =16 -1 ;else clip.thread4.max_threads =2 -1 ;
src/mesa/drivers/dri/i965/brw_clip_tri.c +1 -1
@@ -78,7 +78,7 @@ void brw_clip_tri_alloc_regs( struct brw_clip_compile *c,for (j =0 ; j <3 ; j++) {GLuint delta = c->nr_attrs*16 +32 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) delta = c->nr_attrs *16 +32 *3 ;brw_MOV (&c->func,byte_offset (c->reg.vertex[j], delta),brw_imm_f (0 ));
src/mesa/drivers/dri/i965/brw_clip_util.c +2 -2
@@ -151,7 +151,7 @@ void brw_clip_interp_vertex( struct brw_clip_compile *c,for (i =0 ; i < c->nr_attrs; i++) {GLuint delta = i*16 +32 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) delta = i *16 +32 *3 ;if (delta == c->offset[VERT_RESULT_EDGE ]) {
@@ -185,7 +185,7 @@ void brw_clip_interp_vertex( struct brw_clip_compile *c,if (i &1 ) {GLuint delta = i*16 +32 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) delta = i *16 +32 *3 ;brw_MOV (p,deref_4f (dest_ptr, delta),brw_imm_f (0 ));
src/mesa/drivers/dri/i965/brw_context.c +2 -2
@@ -150,7 +150,7 @@ GLboolean brwCreateContext( const __GLcontextModes *mesaVis,MIN2 (ctx->Const.FragmentProgram.MaxNativeParameters, ctx->Const.FragmentProgram.MaxEnvParams); -if (intel->is_ironlake || intel->is_g4x || intel->gen >=6 ) { +if (intel->is_g4x || intel->gen >=5 ) { brw->CMD_VF_STATISTICS =CMD_VF_STATISTICS_GM45 ; brw->CMD_PIPELINE_SELECT =CMD_PIPELINE_SELECT_GM45 ; brw->has_surface_tile_offset =GL_TRUE ;
@@ -163,7 +163,7 @@ GLboolean brwCreateContext( const __GLcontextModes *mesaVis, }/* WM maximum threads is number of EUs times number of threads per EU. */ -if (intel->is_ironlake) { +if (intel->gen ==5 ) { brw->urb.size =1024 ; brw->vs_max_threads =72 ; brw->wm_max_threads =12 *6 ;
src/mesa/drivers/dri/i965/brw_defines.h +5 -5
@@ -675,12 +675,12 @@#define BRW_SAMPLER_MESSAGE_SIMD8_LD 3#define BRW_SAMPLER_MESSAGE_SIMD16_LD 3 -#define BRW_SAMPLER_MESSAGE_SAMPLE_IGDNG 0 -#define BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_IGDNG 1 -#define BRW_SAMPLER_MESSAGE_SAMPLE_LOD_IGDNG 2 -#define BRW_SAMPLER_MESSAGE_SAMPLE_COMPARE_IGDNG 3 +#define BRW_SAMPLER_MESSAGE_SAMPLE_GEN5 0 +#define BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_GEN5 1 +#define BRW_SAMPLER_MESSAGE_SAMPLE_LOD_GEN5 2 +#define BRW_SAMPLER_MESSAGE_SAMPLE_COMPARE_GEN5 3 -/* for IGDNG only */ +/* for GEN5 only */ #define BRW_SAMPLER_SIMD_MODE_SIMD4X2 0#define BRW_SAMPLER_SIMD_MODE_SIMD8 1#define BRW_SAMPLER_SIMD_MODE_SIMD16 2
src/mesa/drivers/dri/i965/brw_draw_upload.c +2 -2
@@ -522,7 +522,7 @@ static void brw_emit_vertices(struct brw_context *brw)OUT_RELOC (input->bo,I915_GEM_DOMAIN_VERTEX ,0 , input->offset); -if (intel->is_ironlake || intel->gen >=6 ) { +if (intel->gen >=5 ) {OUT_RELOC (input->bo,I915_GEM_DOMAIN_VERTEX ,0 , input->bo->size -1 );
@@ -565,7 +565,7 @@ static void brw_emit_vertices(struct brw_context *brw) (0 << BRW_VE0_SRC_OFFSET_SHIFT)); } -if (intel->is_ironlake || intel->gen >=6 ) +if (intel->gen >=5 ) OUT_BATCH((comp0 << BRW_VE1_COMPONENT_0_SHIFT) | (comp1 << BRW_VE1_COMPONENT_1_SHIFT) | (comp2 << BRW_VE1_COMPONENT_2_SHIFT) |
src/mesa/drivers/dri/i965/brw_eu_emit.c +77 -77
220 lines not on this page · raw message
src/mesa/drivers/dri/i965/brw_gs.c +1 -1
@@ -60,7 +60,7 @@ static void compile_gs_prog( struct brw_context *brw,*/ c.nr_attrs =brw_count_bits (c.key.attrs); -if (intel->is_ironlake) +if (intel->gen ==5 ) c.nr_regs = (c.nr_attrs +1 ) /2 +3 ;/* are vertices packed, or reg-aligned? */ else c.nr_regs = (c.nr_attrs +1 ) /2 +1 ;/* are vertices packed, or reg-aligned? */
src/mesa/drivers/dri/i965/brw_gs_state.c +1 -1
@@ -98,7 +98,7 @@ gs_unit_create_from_key(struct brw_context *brw, struct brw_gs_unit_key *key)else gs.thread4.max_threads =0 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) gs.thread4.rendering_enable =1 ;if (INTEL_DEBUG &DEBUG_STATS )
src/mesa/drivers/dri/i965/brw_misc_state.c +4 -4
@@ -248,7 +248,7 @@ static void emit_depthbuffer(struct brw_context *brw)if (intel->gen >=6 ) len =7 ; -else if (intel->is_g4x || intel->is_ironlake) +else if (intel->is_g4x || intel->gen ==5 ) len =6 ;else len =5 ;
@@ -262,7 +262,7 @@ static void emit_depthbuffer(struct brw_context *brw)OUT_BATCH (0 );OUT_BATCH (0 ); -if (intel->is_g4x || intel->is_ironlake || intel->gen >=6 ) +if (intel->is_g4x || intel->gen >=5 )OUT_BATCH (0 );if (intel->gen >=6 )
@@ -306,7 +306,7 @@ static void emit_depthbuffer(struct brw_context *brw) ((region->height - 1) << 19));OUT_BATCH (0 ); -if (intel->is_g4x || intel->is_ironlake || intel->gen >=6 ) +if (intel->is_g4x || intel->gen >=5 )OUT_BATCH (0 );if (intel->gen >=6 )
@@ -608,7 +608,7 @@ static void upload_state_base_address( struct brw_context *brw )OUT_BATCH (1 );/* Indirect object upper bound */ OUT_BATCH (1 );/* Instruction access upper bound */ ADVANCE_BATCH (); - }else if (intel->is_ironlake) { + }else if (intel->gen ==5 ) {BEGIN_BATCH (8 );OUT_BATCH (CMD_STATE_BASE_ADDRESS <<16 | (8 -2 ));OUT_BATCH (1 );/* General state base address */
src/mesa/drivers/dri/i965/brw_sf_emit.c +2 -2
@@ -162,7 +162,7 @@ static void do_flatshade_triangle( struct brw_sf_compile *c )if (c->key.primitive ==SF_UNFILLED_TRIS )return ; -if (intel->is_ironlake) +if (intel->gen ==5 ) jmpi =2 ;brw_push_insn_state (p);
@@ -201,7 +201,7 @@ static void do_flatshade_line( struct brw_sf_compile *c )if (c->key.primitive ==SF_UNFILLED_TRIS )return ; -if (intel->is_ironlake) +if (intel->gen ==5 ) jmpi =2 ;brw_push_insn_state (p);
src/mesa/drivers/dri/i965/brw_sf_state.c +2 -2
@@ -177,7 +177,7 @@ sf_unit_create_from_key(struct brw_context *brw, struct brw_sf_unit_key *key, sf.thread3.dispatch_grf_start_reg =3 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) sf.thread3.urb_entry_read_offset =3 ;else sf.thread3.urb_entry_read_offset =1 ;
@@ -190,7 +190,7 @@ sf_unit_create_from_key(struct brw_context *brw, struct brw_sf_unit_key *key,/* Each SF thread produces 1 PUE, and there can be up to 24 (Pre-Ironlake) or * 48 (Ironlake) threads. */ -if (intel->is_ironlake) +if (intel->gen ==5 ) chipset_max_threads =48 ;else chipset_max_threads =24 ;
src/mesa/drivers/dri/i965/brw_structs.h +9 -9
@@ -925,7 +925,7 @@ struct brw_gs_unit_statestruct {GLuint pad0:8 ; -GLuint rendering_enable:1 ;/* for IGDNG */ +GLuint rendering_enable:1 ;/* for Ironlake */ GLuint pad4:1 ;GLuint stats_enable:1 ;GLuint nr_urb_entries:7 ;
@@ -1035,7 +1035,7 @@ struct brw_wm_unit_stateGLfloat global_depth_offset_constant;GLfloat global_depth_offset_scale; -/* for IGDNG only */ +/* for Ironlake only */ struct {GLuint pad0:1 ;GLuint grf_reg_count_1:3 ;
@@ -1448,7 +1448,7 @@ struct brw_instruction GLuint end_of_thread:1; GLuint pad1:1; GLuint sfid:4; - } send_igdng;/* for IGDNG only */ + } send_gen5;/* for Ironlake only */ } bits2;
@@ -1549,7 +1549,7 @@ struct brw_instruction GLuint msg_length:4; GLuint pad1:2; GLuint end_of_thread:1; - } math_igdng; + } math_gen5;struct {GLuint binding_table_index:8 ;
@@ -1585,7 +1585,7 @@ struct brw_instruction GLuint msg_length:4; GLuint pad1:2; GLuint end_of_thread:1; - } sampler_igdng; + } sampler_gen5;struct brw_urb_immediate urb;
@@ -1603,7 +1603,7 @@ struct brw_instruction GLuint msg_length:4; GLuint pad1:2; GLuint end_of_thread:1; - } urb_igdng; + } urb_gen5;struct {GLuint binding_table_index:8 ;
@@ -1628,7 +1628,7 @@ struct brw_instruction GLuint msg_length:4; GLuint pad1:2; GLuint end_of_thread:1; - } dp_read_igdng; + } dp_read_gen5;struct {GLuint binding_table_index:8 ;
@@ -1655,7 +1655,7 @@ struct brw_instruction GLuint msg_length:4; GLuint pad1:2; GLuint end_of_thread:1; - } dp_write_igdng; + } dp_write_gen5;struct {GLuint pad:16 ;
@@ -1673,7 +1673,7 @@ struct brw_instruction GLuint msg_length:4; GLuint pad1:2; GLuint end_of_thread:1; - } generic_igdng; + } generic_gen5;GLint d;GLuint ud;
src/mesa/drivers/dri/i965/brw_tex_layout.c +1 -1
@@ -48,7 +48,7 @@ GLboolean brw_miptree_layout(struct intel_context *intel,switch (mt->target) {case GL_TEXTURE_CUBE_MAP : -if (intel->is_ironlake) { +if (intel->gen ==5 ) {GLuint align_h =2 , align_w =4 ;GLuint level;GLuint x =0 ;
src/mesa/drivers/dri/i965/brw_urb.c +1 -1
@@ -148,7 +148,7 @@ static void recalculate_urb_fence( struct brw_context *brw ) brw->urb.constrained =0 ; -if (intel->is_ironlake) { +if (intel->gen ==5 ) { brw->urb.nr_vs_entries =128 ; brw->urb.nr_sf_entries =48 ;if (check_urb_layout (brw)) {
src/mesa/drivers/dri/i965/brw_vs_emit.c +4 -4
@@ -182,7 +182,7 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c )if (intel->gen >=6 ) mrf =6 ; -else if (intel->is_ironlake) +else if (intel->gen ==5 ) mrf =8 ;else mrf =4 ;
@@ -283,7 +283,7 @@ static void brw_vs_alloc_regs( struct brw_vs_compile *c )if (intel->gen >=6 ) c->prog_data.urb_entry_size = (attributes_in_vue +4 +7 ) /8 ; -else if (intel->is_ironlake) +else if (intel->gen ==5 ) c->prog_data.urb_entry_size = (attributes_in_vue +6 +3 ) /4 ;else c->prog_data.urb_entry_size = (attributes_in_vue +2 +3 ) /4 ;
@@ -1288,7 +1288,7 @@ static void emit_vertex_write( struct brw_vs_compile *c)brw_MOV (p,offset (m0,2 ), pos);brw_MOV (p,offset (m0,5 ), pos); len_vertex_header =4 ; - }else if (intel->is_ironlake) { + }else if (intel->gen ==5 ) {/* There are 20 DWs (D0-D19) in VUE header on Ironlake: * dword 0-3 (m1) of the header is indices, point width, clip flags. * dword 4-7 (m2) is the ndc position (set above)
@@ -1684,7 +1684,7 @@ void brw_vs_emit(struct brw_vs_compile *c ) loop_depth--; -if (intel->is_ironlake) +if (intel->gen ==5 ) br =2 ; inst0 = inst1 =brw_WHILE (p, loop_inst[loop_depth]);
src/mesa/drivers/dri/i965/brw_vs_state.c +3 -3
@@ -98,7 +98,7 @@ vs_unit_create_from_key(struct brw_context *brw, struct brw_vs_unit_key *key)*/ vs.thread1.single_program_flow =0 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) vs.thread1.binding_table_entry_count =0 ;/* hardware requirement */ else vs.thread1.binding_table_entry_count = key->nr_surfaces;
@@ -109,7 +109,7 @@ vs_unit_create_from_key(struct brw_context *brw, struct brw_vs_unit_key *key) vs.thread3.urb_entry_read_offset =0 ; vs.thread3.const_urb_entry_read_offset = key->curbe_offset *2 ; -if (intel->is_ironlake) { +if (intel->gen ==5 ) {switch (key->nr_urb_entries) {case 8 :case 12 :
@@ -150,7 +150,7 @@ vs_unit_create_from_key(struct brw_context *brw, struct brw_vs_unit_key *key)/* No samplers for ARB_vp programs: */ -/* It has to be set to 0 for IGDNG +/* It has to be set to 0 for Ironlake */ vs.vs5.sampler_count =0 ;
src/mesa/drivers/dri/i965/brw_wm_emit.c +9 -9
@@ -967,7 +967,7 @@ void emit_tex(struct brw_wm_compile *c, }/* Pre-Ironlake, the 8-wide sampler always took u,v,r. */ -if (!intel->is_ironlake && c->dispatch_width ==8 ) +if (intel->gen <5 && c->dispatch_width ==8 ) nr_texcoords =3 ;/* For shadow comparisons, we have to supply u,v,r. */
@@ -985,7 +985,7 @@ void emit_tex(struct brw_wm_compile *c,/* Fill in the shadow comparison reference value. */ if (shadow) { -if (intel->is_ironlake) { +if (intel->gen ==5 ) {/* Fill in the cube map array index value. */ brw_MOV (p,brw_message_reg (cur_mrf),brw_imm_f (0 )); cur_mrf += mrf_per_channel;
@@ -998,11 +998,11 @@ void emit_tex(struct brw_wm_compile *c, cur_mrf += mrf_per_channel; } -if (intel->is_ironlake) { +if (intel->gen ==5 ) {if (shadow) - msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_COMPARE_IGDNG ; + msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_COMPARE_GEN5 ;else - msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_IGDNG ; + msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_GEN5 ; }else {/* Note that G45 and older determines shadow compare and dispatch width * from message length for most messages.
@@ -1050,16 +1050,16 @@ void emit_txb(struct brw_wm_compile *c,* undefined, and trust the execution mask to keep the undefined pixels * from mattering. */ -if (c->dispatch_width ==16 || !intel->is_ironlake) { -if (intel->is_ironlake) - msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_IGDNG ; +if (c->dispatch_width ==16 || intel->gen <5 ) { +if (intel->gen ==5 ) + msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_GEN5 ;else msg_type =BRW_SAMPLER_MESSAGE_SIMD16_SAMPLE_BIAS ; mrf_per_channel =2 ; dst_retyped =retype (vec16 (dst[0 ]),BRW_REGISTER_TYPE_UW ); response_length =8 ; }else { - msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_IGDNG ; + msg_type =BRW_SAMPLER_MESSAGE_SAMPLE_BIAS_GEN5 ; mrf_per_channel =1 ; dst_retyped =retype (vec8 (dst[0 ]),BRW_REGISTER_TYPE_UW ); response_length =4 ;
src/mesa/drivers/dri/i965/brw_wm_glsl.c +1 -1
@@ -2070,7 +2070,7 @@ static void brw_wm_emit_glsl(struct brw_context *brw, struct brw_wm_compile *c)struct brw_instruction *inst0, *inst1;GLuint br =1 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) br =2 ;assert (loop_depth >0 );
src/mesa/drivers/dri/i965/brw_wm_state.c +2 -2
@@ -137,7 +137,7 @@ wm_unit_create_from_key(struct brw_context *brw, struct brw_wm_unit_key *key, wm.thread1.depth_coef_urb_read_offset =1 ; wm.thread1.floating_point_mode =BRW_FLOATING_POINT_NON_IEEE_754 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) wm.thread1.binding_table_entry_count =0 ;/* hardware requirement */ else wm.thread1.binding_table_entry_count = key->nr_surfaces;
@@ -157,7 +157,7 @@ wm_unit_create_from_key(struct brw_context *brw, struct brw_wm_unit_key *key, wm.thread3.const_urb_entry_read_length = key->curb_entry_read_length; wm.thread3.const_urb_entry_read_offset = key->curbe_offset *2 ; -if (intel->is_ironlake) +if (intel->gen ==5 ) wm.wm4.sampler_count =0 ;/* hardware requirement */ else wm.wm4.sampler_count = (key->sampler_count +1 ) /4 ;
src/mesa/drivers/dri/intel/intel_chipset.h +2 -2
@@ -93,7 +93,7 @@#define IS_ILD (devid) (devid == PCI_CHIP_ILD_G)#define IS_ILM (devid) (devid == PCI_CHIP_ILM_G) -#define IS_IGDNG (devid) (IS_ILD(devid) || IS_ILM(devid)) +#define IS_GEN5 (devid) (IS_ILD(devid) || IS_ILM(devid))#define IS_915 (devid) (devid == PCI_CHIP_I915_G || \ devid == PCI_CHIP_E7221_G || \
@@ -118,7 +118,7 @@#define IS_965 (devid) (IS_GEN4(devid) || \ IS_G4X(devid) || \ - IS_IGDNG(devid) || \ + IS_GEN5(devid) || \ IS_GEN6(devid))#define IS_9XX (devid) (IS_915(devid) || \
src/mesa/drivers/dri/intel/intel_context.c +10 -11
@@ -159,10 +159,10 @@ intelGetString(GLcontext * ctx, GLenum name) chipset ="Intel(R) B43" ;break ;case PCI_CHIP_ILD_G : - chipset ="Intel(R) IGDNG_D" ; + chipset ="Intel(R) Ironlake Desktop" ;break ;case PCI_CHIP_ILM_G : - chipset ="Intel(R) IGDNG_M" ; + chipset ="Intel(R) Ironlake Mobile" ;break ;default : chipset ="Unknown Intel Chipset" ;
@@ -616,8 +616,16 @@ intelInitContext(struct intel_context *intel, intel->gen =6 ; intel->needs_ff_sync =GL_TRUE ; intel->has_luminance_srgb =GL_TRUE ; + }else if (IS_GEN5 (intel->intelScreen->deviceID)) { + intel->gen =5 ; + intel->needs_ff_sync =GL_TRUE ; + intel->has_luminance_srgb =GL_TRUE ; }else if (IS_965 (intel->intelScreen->deviceID)) { intel->gen =4 ; +if (IS_G4X (intel->intelScreen->deviceID)) { + intel->has_luminance_srgb =GL_TRUE ; + intel->is_g4x =GL_TRUE ; + } }else if (IS_9XX (intel->intelScreen->deviceID)) { intel->gen =3 ;if (IS_945 (intel->intelScreen->deviceID)) {
@@ -627,15 +635,6 @@ intelInitContext(struct intel_context *intel, intel->gen =2 ; } -if (IS_IGDNG (intel->intelScreen->deviceID)) { - intel->is_ironlake =GL_TRUE ; - intel->needs_ff_sync =GL_TRUE ; - intel->has_luminance_srgb =GL_TRUE ; - }else if (IS_G4X (intel->intelScreen->deviceID)) { - intel->has_luminance_srgb =GL_TRUE ; - intel->is_g4x =GL_TRUE ; - } -driParseConfigFiles (&intel->optionCache, &intelScreen->optionCache, sPriv->myNum, (intel->gen >=4 ) ?"i965" :"i915" );if (intelScreen->deviceID ==PCI_CHIP_I865_G )
src/mesa/drivers/dri/intel/intel_context.h +0 -1
@@ -142,7 +142,6 @@ struct intel_context*/ int gen;GLboolean needs_ff_sync; -GLboolean is_ironlake;GLboolean is_g4x;GLboolean is_945;GLboolean has_luminance_srgb;
Signature · 1 line
1.6.3.3
PATCH 2/2 intel: Add Sandybridge mobile chipset id
Signed-off-by Zhenyu Wang <[email protected]>
--- src/mesa/drivers/dri/intel/intel_chipset.h | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-)
src/mesa/drivers/dri/intel/intel_chipset.h +3 -1
@@ -72,6 +72,7 @@#define PCI_CHIP_ILM_G 0x0046#define PCI_CHIP_SANDYBRIDGE 0x0102 +#define PCI_CHIP_SANDYBRIDGE_M 0x0106#define IS_MOBILE (devid) (devid == PCI_CHIP_I855_GM || \ devid == PCI_CHIP_I915_GM || \
@@ -114,7 +115,8 @@ devid == PCI_CHIP_I946_GZ || \ IS_G4X(devid)) -#define IS_GEN6 (devid) (devid == PCI_CHIP_SANDYBRIDGE) +#define IS_GEN6 (devid) (devid == PCI_CHIP_SANDYBRIDGE || \ + devid == PCI_CHIP_SANDYBRIDGE_M)#define IS_965 (devid) (IS_GEN4(devid) || \ IS_G4X(devid) || \
Signature · 1 line
1.6.3.3
Quoted 5 lines · Zhenyu Wang
Rename old IGDNG to Ironlake, and set 'gen' number for Ironlake as 5, so tracking the features with generation num instead of special
is_ironlakeflag.Signed-off-by Zhenyu Wang <[email protected]>
Reviewed-by Eric Anholt <[email protected]>
_______________________________________________
Intel-gfx mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/intel-gfx