+static void
+brw_upload_initial_gpu_state(struct brw_context *brw)
+{
+ struct intel_context *intel = &brw->intel;
+
+ /* On platforms with hardware contexts, we can set our initial GPU state
+ * right away rather than doing it via state atoms. This saves a small
+ * amount of overhead on every draw call.
+ */
+ if (!intel->hw_ctx)
+ return;
+
+ brw_upload_invariant_state(brw);
+}