i965/blorp/gen8: Move viewport setup to after wm state
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 9 Aug 2016 22:45:04 +0000 (15:45 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 19 Aug 2016 10:11:29 +0000 (03:11 -0700)
This matches gen6 and gen7.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
src/mesa/drivers/dri/i965/gen8_blorp.c

index 5085923730871d556e4c90be15a83934d3b5e30e..2e90438fb3d6aac139b4a72e64db621ca7b48d26 100644 (file)
@@ -509,7 +509,6 @@ gen8_blorp_exec(struct brw_context *brw, const struct brw_blorp_params *params)
 
    brw_upload_state_base_address(brw);
 
-   gen7_blorp_emit_cc_viewport(brw);
    gen7_l3_state.emit(brw);
 
    gen7_blorp_emit_urb_config(brw, params);
@@ -564,6 +563,8 @@ gen8_blorp_exec(struct brw_context *brw, const struct brw_blorp_params *params)
 
    gen8_blorp_emit_wm_state(brw);
 
+   gen7_blorp_emit_cc_viewport(brw);
+
    gen8_blorp_emit_depth_disable(brw);
    gen7_blorp_emit_clear_params(brw, params);
    gen6_blorp_emit_drawing_rectangle(brw, params);