mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 17:48:10 +02:00
i965/vec4: Assert that pull constant load offsets are 16B-aligned.
Non-16B-aligned pull constant loads are unlikely to be particularly useful given that you can get roughly the same effect by using swizzles on the result. Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
This commit is contained in:
parent
5ca35c6367
commit
6d861968ca
1 changed files with 1 additions and 0 deletions
|
|
@ -1651,6 +1651,7 @@ vec4_visitor::emit_pull_constant_load(bblock_t *block, vec4_instruction *inst,
|
||||||
dst_reg temp, src_reg orig_src,
|
dst_reg temp, src_reg orig_src,
|
||||||
int base_offset, src_reg indirect)
|
int base_offset, src_reg indirect)
|
||||||
{
|
{
|
||||||
|
assert(orig_src.offset % 16 == 0);
|
||||||
int reg_offset = base_offset + orig_src.offset / 16;
|
int reg_offset = base_offset + orig_src.offset / 16;
|
||||||
const unsigned index = prog_data->base.binding_table.pull_constants_start;
|
const unsigned index = prog_data->base.binding_table.pull_constants_start;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue