intel/compiler/fs: Support Xe2 reg size in assign_curb_setup
authorJordan Justen <jordan.l.justen@intel.com>
Wed, 1 Feb 2023 00:01:26 +0000 (16:01 -0800)
committerJordan Justen <jordan.l.justen@intel.com>
Thu, 21 Sep 2023 00:19:36 +0000 (17:19 -0700)
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25020>

src/intel/compiler/brw_fs.cpp

index 2f7f50c..a84df81 100644 (file)
@@ -1630,7 +1630,7 @@ fs_visitor::assign_curb_setup()
        * TODO: Support inline data and push at the same time.
        */
       assert(devinfo->verx10 >= 125);
-      assert(uniform_push_length <= 1);
+      assert(uniform_push_length <= reg_unit(devinfo));
    } else if (is_compute && devinfo->verx10 >= 125) {
       assert(devinfo->has_lsc);
       fs_builder ubld = bld.exec_all().group(1, 0).at(