OSDN Git Service

anv/pipeline: Only consider double elements which actually exist
authorJason Ekstrand <jason.ekstrand@intel.com>
Tue, 4 Sep 2018 18:58:01 +0000 (13:58 -0500)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 6 Sep 2018 21:07:50 +0000 (16:07 -0500)
commit7b26741806c521279a1b83f2eae40a277d806626
tree15cd139541db96e3907f4f3a937a49fa8ecb0c37
parent44ec31cd75f679b32afb03c3c9c46762e57ce506
anv/pipeline: Only consider double elements which actually exist

The brw_vs_prog_data::double_inputs_read field comes directly from
shader_info::double_inputs which may contain inputs which are not
actually read.  Instead of using it directly, AND it with inputs_read
which is only things which are read.  Otherwise, we may end up
subtracting too many elements when computing elem_count.

Cc: mesa-stable@lists.freedesktop.org
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103241
Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
src/intel/vulkan/genX_pipeline.c