Reviewed-by: Caio Oliveira <caio.oliveira@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25020>
#include "brw_ir_fs.h"
#include "brw_shader.h"
+#include "brw_eu.h"
namespace brw {
/**
dst_reg
vgrf(enum brw_reg_type type, unsigned n = 1) const
{
+ const unsigned unit = reg_unit(shader->devinfo);
assert(dispatch_width() <= 32);
if (n > 0)
return dst_reg(VGRF, shader->alloc.allocate(
DIV_ROUND_UP(n * type_sz(type) * dispatch_width(),
- REG_SIZE)),
+ unit * REG_SIZE) * unit),
type);
else
return retype(null_reg_ud(), type);