i965: Delete the fabulous target_to_target() function.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 21 Feb 2014 21:47:29 +0000 (13:47 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Sat, 22 Feb 2014 03:17:55 +0000 (19:17 -0800)
commit119aa50929d418a9f410d562b26aec8e1b2a482d
treebeef55bc74bc0fceb1f63cb06c4d5fd800562c46
parent82f9ad8c6011f5c1e8fd7065eeb6094f6e16dea9
i965: Delete the fabulous target_to_target() function.

gl_texture_object's Target field is never a cube face enumeration, so
target_to_target is just the identity function.  Aptly named, at least.

I verified this by putting an assert(!"ZOMG, CUBES!") in the cube face
case, and running Piglit.  Nothing ever hit it.  Beyond that, I
inspected the code in mesa/main.

This could probably also be deleted from i915, but I haven't tested
there.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/i965/intel_mipmap_tree.c