i965: Virtualize vec4_visitor::emit_urb_slot().
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 28 Aug 2015 07:29:05 +0000 (00:29 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 4 Sep 2015 05:31:03 +0000 (22:31 -0700)
commit323962182547aeafcdb3bac28434ef81f70eb785
treeda5b88f17f8921000cf9f2bab98e5aa047a2ce4a
parent27e83b62bb52de7a681ed82679a707555023f43d
i965: Virtualize vec4_visitor::emit_urb_slot().

This avoids a downcast of key, which won't exist in the base class soon.

I'm not a huge fan of this patch, but given that we're currently using
inheritance, this seems like the "right" way to do it.  The alternative
is to make key a void pointer in the parent class and continue
downcasting.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_vec4.h
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp
src/mesa/drivers/dri/i965/brw_vec4_vs_visitor.cpp
src/mesa/drivers/dri/i965/brw_vs.h