mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2024-11-30 13:44:06 +08:00
i965/fs: take into account doubles when emitting system values
Fixes the following cts test: GL42-CTS.vertex_attrib_64bit.limits_test Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
89bb4be91e
commit
8c29bba242
@ -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) +
|
||||
_mesa_bitcount_64(nir->info.double_inputs_read)),
|
||||
BRW_REGISTER_TYPE_D);
|
||||
brw_vs_prog_data *vs_prog_data = (brw_vs_prog_data *) prog_data;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user