summaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorAlejandro Piñeiro <[email protected]>2016-05-24 15:00:30 +0200
committerAlejandro Piñeiro <[email protected]>2016-05-25 20:14:22 +0200
commit8c29bba242062a01e73743ca5086604a57c0efc5 (patch)
treea881c0039cebe891fff8c0aaab0ab5ad29d32800 /src/mesa
parent89bb4be91e804a5eaa996822333a0c8c5ef423ae (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs_visitor.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
index 012492c0e0d..c220f1c9601 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
@@ -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;