nir: Distinguish between normal uniforms and UBOs
[mesa.git] / src / gallium / drivers / i915 / i915_state_immediate.c
index b6007acdd1c2ab32df113524e9e5b1b77c8c0502..14566a4bec30096219fd3f159d364bcc1f355617 100644 (file)
@@ -168,11 +168,13 @@ static void upload_S6(struct i915_context *i915)
 
    /* I915_NEW_BLEND
     */
-   LIS6 |= i915->blend->LIS6;
+   if (i915->blend)
+      LIS6 |= i915->blend->LIS6;
 
    /* I915_NEW_DEPTH
     */
-   LIS6 |= i915->depth_stencil->depth_LIS6;
+   if (i915->depth_stencil)
+      LIS6 |= i915->depth_stencil->depth_LIS6;
 
    set_immediate(i915, I915_IMMEDIATE_S6, LIS6);
 }