OSDN Git Service

i965/vs: Handle vertex color clamping in emit_urb_slot().
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 1 Dec 2014 08:53:02 +0000 (00:53 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 3 Dec 2014 01:00:26 +0000 (17:00 -0800)
commit169b6c1955deee7333d61f9ff149b7124bdea7d1
treec46b9925e1a4e187885407b22ff143a145bdd6b2
parent793ac67d3ddf636dcb9c21624809207993ab5aac
i965/vs: Handle vertex color clamping in emit_urb_slot().

Vertex color clamping only applies to a few specific built-ins: COL0/1
and BFC0/1 (aka gl_[Secondary]{Front,Back}Color).  It seems weird to
handle special cases in a function called emit_generic_urb_slot().

emit_urb_slot() is all about handling special cases, so it makes more
sense to handle this there.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
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