i965: Adjust gen check in can_do_pipelined_register_writes
authorFrancisco Jerez <currojerez@riseup.net>
Thu, 3 Sep 2015 14:08:16 +0000 (17:08 +0300)
committerFrancisco Jerez <currojerez@riseup.net>
Wed, 9 Dec 2015 11:46:04 +0000 (13:46 +0200)
Allow for pipelined register writes for gen < 7.

v2:
 * Split from another patch and adjust comment (jljusten)

Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
src/mesa/drivers/dri/i965/intel_extensions.c

index bec318ffa3dac59fd81c07d016ded53c1fb2958e..8a1ec324e2ca62f055ee2f422e7e6af8dd640517 100644 (file)
 static bool
 can_do_pipelined_register_writes(struct brw_context *brw)
 {
-   /* Supposedly, Broadwell just works. */
-   if (brw->gen >= 8)
+   /**
+    * gen >= 8 specifically allows these writes. gen <= 6 also
+    * doesn't block them.
+    */
+   if (brw->gen != 7)
       return true;
 
    static int result = -1;