From: Carl Worth Date: Thu, 6 Dec 2012 00:36:06 +0000 (-0800) Subject: drirc: Add quirk to disable GLSL line continuations for Savage2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4b00ecebd0019202315f0f4a9e6105d962e659f7;p=mesa.git drirc: Add quirk to disable GLSL line continuations for Savage2 This application is known to contain shaders that: 1. Have a stray backslash as the last line of comment lines 2. Have a declaration immediately following that line Hence, interpreting that backslash as a line continuation causes the declaration to be hidden and the shader fails to compile. Fortunately, the shaders also: 3. Do not have any other intentional line-continuation characters So disabling line continuations entirely for the application fixes this problem without causing any other breakage. Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc index cf13cdb8020..a13941f681e 100644 --- a/src/mesa/drivers/dri/common/drirc +++ b/src/mesa/drivers/dri/common/drirc @@ -22,5 +22,8 @@ + +