i965: Ivybridge uses the Gen4 SAMPLER_BORDER_COLOR_STATE.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 17 May 2011 21:17:21 +0000 (14:17 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2011 06:47:52 +0000 (23:47 -0700)
Volume 5c 1.13.7 lists it as [PreDevILK] and [DevIVB+].

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_wm_sampler_state.c

index 6f5057b73471a5067071a85f6d68449e97179417..918c1d6243d5ab79532a540c4090384340973157 100644 (file)
@@ -67,6 +67,9 @@ translate_wrap_mode(GLenum wrap)
    }
 }
 
+/**
+ * Upload SAMPLER_BORDER_COLOR_STATE.
+ */
 void
 upload_default_color(struct brw_context *brw, struct gl_sampler_object *sampler,
                     int unit)
@@ -94,7 +97,7 @@ upload_default_color(struct brw_context *brw, struct gl_sampler_object *sampler,
       color[3] = sampler->BorderColor.f[3];
    }
 
-   if (intel->gen >= 5) {
+   if (intel->gen == 5 || intel->gen == 6) {
       struct gen5_sampler_default_color *sdc;
 
       sdc = brw_state_batch(brw, sizeof(*sdc), 32, &brw->wm.sdc_offset[unit]);