i965: fix compiler error in union initiliazer
authorPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 14 Aug 2014 18:17:04 +0000 (21:17 +0300)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Thu, 14 Aug 2014 18:30:57 +0000 (21:30 +0300)
commit972e87ca30b4c4b7f6269e5f9fe8c5cb6356f744
tree8163b2822e125e1301bd32e3aa1856bac4615326
parent9b9dd22f4448da6a6e825faaa40cd601b6fb2b59
i965: fix compiler error in union initiliazer

gcc 4.6.3 chokes with the following error:

brw_vec4.cpp: In member function 'int brw::vec4_visitor::setup_uniforms(int)':
brw_vec4.cpp:1496:37: error: expected primary-expression before '.' token

Apparently C++ does not do named initializers for unions, except maybe
as a gcc extension, which is not present here.

As .f is the first element of the union, just drop it. Fixes the build
error.

Signed-off-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_vec4.cpp
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp