Commit 8c29bba2 authored by Alejandro Piñeiro's avatar Alejandro Piñeiro

i965/fs: take into account doubles when emitting system values

Fixes the following cts test:
Reviewed-by: default avatarKenneth Graunke <>
parent 89bb4be9
......@@ -36,7 +36,8 @@ fs_reg *
fs_visitor::emit_vs_system_value(int location)
fs_reg *reg = new(this->mem_ctx)
fs_reg(ATTR, 4 * _mesa_bitcount_64(nir->info.inputs_read),
fs_reg(ATTR, 4 * (_mesa_bitcount_64(nir->info.inputs_read) +
brw_vs_prog_data *vs_prog_data = (brw_vs_prog_data *) prog_data;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment