Gentoo Archives: gentoo-commits

From: Mike Gilbert <floppym@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-client/chromium/files/
Date: Fri, 28 Jun 2019 15:30:40
Message-Id: 1561735742.1cc6e650f4b09c32396fb33c6588dd2c09e53945.floppym@gentoo
1 commit: 1cc6e650f4b09c32396fb33c6588dd2c09e53945
2 Author: Stephan Hartmann <stha09 <AT> googlemail <DOT> com>
3 AuthorDate: Wed Jun 26 14:25:05 2019 +0000
4 Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org>
5 CommitDate: Fri Jun 28 15:29:02 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1cc6e650
7
8 www-client/chromium: update angle inline patch
9
10 Closes: https://github.com/gentoo/gentoo/pull/12331
11 Package-Manager: Portage-2.3.66, Repoman-2.3.11
12 Signed-off-by: Stephan Hartmann <stha09 <AT> googlemail.com>
13 Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org>
14
15 .../chromium/files/chromium-angle-inline.patch | 120 ++++++++++++++++++---
16 1 file changed, 106 insertions(+), 14 deletions(-)
17
18 diff --git a/www-client/chromium/files/chromium-angle-inline.patch b/www-client/chromium/files/chromium-angle-inline.patch
19 index 8ece410f104..e8975d74817 100644
20 --- a/www-client/chromium/files/chromium-angle-inline.patch
21 +++ b/www-client/chromium/files/chromium-angle-inline.patch
22 @@ -1,26 +1,118 @@
23 -From 2ee4e7f857514f4c0cbff135a1c5f968d8814d31 Mon Sep 17 00:00:00 2001
24 -From: Stephan Hartmann <stha09@××××××××××.com>
25 -Date: Sun, 23 Jun 2019 12:14:57 +0000
26 -Subject: [PATCH] explicit declaration of const GLfloat/const GLint for ValidateSamplerParameterBase
27 +From 4c0a23611b3906855db7b93da2f34aec57930cdf Mon Sep 17 00:00:00 2001
28 +From: Geoff Lang <geofflang@××××××××.org>
29 +Date: Tue, 25 Jun 2019 10:56:29 -0400
30 +Subject: [PATCH] Update ValidateSamplerParameterBase to use const parameters.
31
32 +ValidateSamplerParameterBase is called with both const and non-const
33 +parameter pointers which caused our explicit template instantiations to
34 +not cover all cases resulting in link errors. Force the parameters to
35 +always be const so that our instantiations cover everything.
36 +
37 +BUG=angleproject:3555
38 +
39 +Change-Id: Ibf92572ba80a689c75dcdc70e5153d9941da76f3
40 +Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/1676305
41 +Reviewed-by: Jonah Ryan-Davis <jonahr@××××××.com>
42 +Commit-Queue: Geoff Lang <geofflang@××××××××.org>
43 ---
44 - third_party/angle/src/libANGLE/validationES.cpp | 2 ++
45 - 1 file changed, 2 insertions(+)
46
47 diff --git a/third_party/angle/src/libANGLE/validationES.cpp b/third_party/angle/src/libANGLE/validationES.cpp
48 -index ae353f7..fdc7ac2 100644
49 +index 041803a..3f402f6 100644
50 --- a/third_party/angle/src/libANGLE/validationES.cpp
51 +++ b/third_party/angle/src/libANGLE/validationES.cpp
52 -@@ -6089,7 +6089,9 @@ bool ValidateSamplerParameterBase(Context *context,
53 +@@ -189,7 +189,9 @@
54 + }
55 +
56 + template <typename ParamType>
57 +-bool ValidateTextureWrapModeValue(Context *context, ParamType *params, bool restrictedWrapModes)
58 ++bool ValidateTextureWrapModeValue(Context *context,
59 ++ const ParamType *params,
60 ++ bool restrictedWrapModes)
61 + {
62 + switch (ConvertToGLenum(params[0]))
63 + {
64 +@@ -223,7 +225,9 @@
65 + }
66 +
67 + template <typename ParamType>
68 +-bool ValidateTextureMinFilterValue(Context *context, ParamType *params, bool restrictedMinFilter)
69 ++bool ValidateTextureMinFilterValue(Context *context,
70 ++ const ParamType *params,
71 ++ bool restrictedMinFilter)
72 + {
73 + switch (ConvertToGLenum(params[0]))
74 + {
75 +@@ -252,7 +256,7 @@
76 + }
77 +
78 + template <typename ParamType>
79 +-bool ValidateTextureMagFilterValue(Context *context, ParamType *params)
80 ++bool ValidateTextureMagFilterValue(Context *context, const ParamType *params)
81 + {
82 + switch (ConvertToGLenum(params[0]))
83 + {
84 +@@ -269,7 +273,7 @@
85 }
86
87 - template bool ValidateSamplerParameterBase(Context *, GLuint, GLenum, GLsizei, bool, GLfloat *);
88 -+template bool ValidateSamplerParameterBase(Context *, GLuint, GLenum, GLsizei, bool, const GLfloat *);
89 - template bool ValidateSamplerParameterBase(Context *, GLuint, GLenum, GLsizei, bool, GLint *);
90 + template <typename ParamType>
91 +-bool ValidateTextureCompareModeValue(Context *context, ParamType *params)
92 ++bool ValidateTextureCompareModeValue(Context *context, const ParamType *params)
93 + {
94 + // Acceptable mode parameters from GLES 3.0.2 spec, table 3.17
95 + switch (ConvertToGLenum(params[0]))
96 +@@ -287,7 +291,7 @@
97 + }
98 +
99 + template <typename ParamType>
100 +-bool ValidateTextureCompareFuncValue(Context *context, ParamType *params)
101 ++bool ValidateTextureCompareFuncValue(Context *context, const ParamType *params)
102 + {
103 + // Acceptable function parameters from GLES 3.0.2 spec, table 3.17
104 + switch (ConvertToGLenum(params[0]))
105 +@@ -311,7 +315,7 @@
106 + }
107 +
108 + template <typename ParamType>
109 +-bool ValidateTextureSRGBDecodeValue(Context *context, ParamType *params)
110 ++bool ValidateTextureSRGBDecodeValue(Context *context, const ParamType *params)
111 + {
112 + if (!context->getExtensions().textureSRGBDecode)
113 + {
114 +@@ -5996,7 +6000,7 @@
115 + GLenum pname,
116 + GLsizei bufSize,
117 + bool vectorParams,
118 +- ParamType *params)
119 ++ const ParamType *params)
120 + {
121 + if (context->getClientMajorVersion() < 3)
122 + {
123 +@@ -6099,8 +6103,13 @@
124 + return true;
125 + }
126 +
127 +-template bool ValidateSamplerParameterBase(Context *, GLuint, GLenum, GLsizei, bool, GLfloat *);
128 +-template bool ValidateSamplerParameterBase(Context *, GLuint, GLenum, GLsizei, bool, GLint *);
129 ++template bool ValidateSamplerParameterBase(Context *,
130 ++ GLuint,
131 ++ GLenum,
132 ++ GLsizei,
133 ++ bool,
134 ++ const GLfloat *);
135 +template bool ValidateSamplerParameterBase(Context *, GLuint, GLenum, GLsizei, bool, const GLint *);
136 template bool ValidateSamplerParameterBase(Context *,
137 GLuint,
138 GLenum,
139 ---
140 -2.21.0
141 -
142 +diff --git a/third_party/angle/src/libANGLE/validationES.h b/third_party/angle/src/libANGLE/validationES.h
143 +index c61bda6..4b06d28 100644
144 +--- a/third_party/angle/src/libANGLE/validationES.h
145 ++++ b/third_party/angle/src/libANGLE/validationES.h
146 +@@ -584,7 +584,7 @@
147 + GLenum pname,
148 + GLsizei bufSize,
149 + bool vectorParams,
150 +- ParamType *params);
151 ++ const ParamType *params);
152 +
153 + bool ValidateGetInternalFormativBase(Context *context,
154 + GLenum target,