OSDN Git Service

i965/vec4/vp: Use vec4_visitor::CMP.
authorMatt Turner <mattst88@gmail.com>
Thu, 12 Feb 2015 02:01:49 +0000 (02:01 +0000)
committerEmil Velikov <emil.l.velikov@gmail.com>
Tue, 24 Feb 2015 12:17:20 +0000 (12:17 +0000)
commit694d65655151582df64adaf05c6bc4c09539050f
tree7e7ac1780e22a9a05d4dc7be1416daa284016d1b
parentc38068f5c14ab45df49b4711376ddd80ac8a6f99
i965/vec4/vp: Use vec4_visitor::CMP.

... instead of emit(BRW_OPCODE_CMP, ...). In commit 6b3a301f I changed
vec4_visitor::CMP to set the destination's type to that of src0. In the
following commit (2335153f) I removed an apparently now unnecessary work
around for Gen8 that did the same thing.

But there was a single place that emitted a CMP instruction without
using the vec4_visitor::CMP function. Use it there.

And change dst_null_d to dst_null_f for good measure, since ARB vp
doesn't have integers.

Cc: "10.5" <mesa-stable@lists.freedesktop.org>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89032
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
(cherry picked from commit 72b9f8db2a035b52dbd59af0d2a6441cbde11a4c)
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp