ARB_fp: accept duplicate precision options
authorChris Forbes <chrisf@ijw.co.nz>
Thu, 16 May 2013 09:21:05 +0000 (21:21 +1200)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 23 May 2013 19:50:51 +0000 (07:50 +1200)
commita3d8e7c57c87da58b3594cecd4ac328847552477
tree3807149f7c516580120f2a4d0812e43592612c57
parente3eeb72f2437c95ff92e4ef29afe2e6bad250c36
ARB_fp: accept duplicate precision options

Relaxes the validation of

   OPTION ARB_precision_hint_{nicest,fastest};

to allow duplicate options. The spec says that both /nicest/ and
/fastest/ cannot be specified together, but could be interpreted
either way for respecification of the same option.

Other drivers (NVIDIA etc) accept this, and at least one Unity3D game
expects it to succeed (Kerbal Space Program).

V2: Add spec quote.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/program/program_parse_extra.c