[Mesa-dev] [PATCH] i965/fs: take into account doubles when emitting system values
Kenneth Graunke
kenneth at whitecape.org
Wed May 25 16:08:59 UTC 2016
On Wednesday, May 25, 2016 2:26:17 PM PDT Alejandro PiƱeiro wrote:
> Fixes the following cts test:
> GL42-CTS.vertex_attrib_64bit.limits_test
> ---
> src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp b/src/mesa/drivers/dri/i965/brw_fs_visitor.cpp
> index 012492c..c220f1c 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;
>
>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20160525/30d15ea4/attachment.sig>
More information about the mesa-dev
mailing list