intel: Add support for ARB_draw_elements_base_vertex.
[mesa.git] / src / mesa / drivers / dri / i965 / brw_wm_iz.c
index 8fd067abe7d52b77ffc48fbf00fe0d6bd1f20067..5e399ac62a8c88a33007b63f1cdccf4557123e32 100644 (file)
@@ -122,6 +122,7 @@ const struct {
  */
 void brw_wm_lookup_iz( GLuint line_aa,
                       GLuint lookup,
+                      GLboolean ps_uses_depth,
                       struct brw_wm_prog_key *key )
 {
    GLuint reg = 2;
@@ -131,7 +132,7 @@ void brw_wm_lookup_iz( GLuint line_aa,
    if (lookup & IZ_PS_COMPUTES_DEPTH_BIT)
       key->computes_depth = 1;
 
-   if (wm_iz_table[lookup].sd_present) {
+   if (wm_iz_table[lookup].sd_present || ps_uses_depth) {
       key->source_depth_reg = reg;
       reg += 2;
    }