[Mesa-dev] [PATCH 02/25] i965/gen7: Factor out texture surface state set-up from gen7_update_texture_surface().

Chris Forbes chrisf at ijw.co.nz
Mon Dec 30 13:50:40 PST 2013


+gen7_emit_texture_surface_state(struct brw_context *brw,
+                                struct gl_texture_object *obj,
+                                unsigned min_array_element,
+                                unsigned max_array_element,
+                                unsigned min_level,
+                                unsigned max_level,

[snip]

+      gen7_emit_texture_surface_state(brw, obj,
+                                      0, mt->logical_depth0,
+                                      obj->BaseLevel, intel_obj->_MaxLevel,

It seems ugly that max_array_element is exclusive, but max_level is inclusive.

-- Chris


More information about the mesa-dev mailing list