Commit d4d44f9c authored by cwallez's avatar cwallez Committed by Commit bot

gpu/config: Add workaround rewrite do-while on Mac < 10.11

BUG=644669
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel

Review-Url: https://codereview.chromium.org/2343863003
Cr-Commit-Position: refs/heads/master@{#419171}
parent 212feea3
...@@ -3727,6 +3727,8 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() { ...@@ -3727,6 +3727,8 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH; driver_bug_workarounds |= SH_REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH;
if (workarounds().add_and_true_to_loop_condition) if (workarounds().add_and_true_to_loop_condition)
driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION; driver_bug_workarounds |= SH_ADD_AND_TRUE_TO_LOOP_CONDITION;
if (workarounds().rewrite_do_while_loops)
driver_bug_workarounds |= SH_REWRITE_DO_WHILE_LOOPS;
resources.WEBGL_debug_shader_precision = resources.WEBGL_debug_shader_precision =
group_->gpu_preferences().emulate_shader_precision; group_->gpu_preferences().emulate_shader_precision;
......
...@@ -19,7 +19,7 @@ const char kGpuDriverBugListJson[] = LONG_STRING_CONST( ...@@ -19,7 +19,7 @@ const char kGpuDriverBugListJson[] = LONG_STRING_CONST(
{ {
"name": "gpu driver bug list", "name": "gpu driver bug list",
// Please update the version number whenever you change this file. // Please update the version number whenever you change this file.
"version": "8.98", "version": "8.99",
"entries": [ "entries": [
{ {
"id": 1, "id": 1,
...@@ -1988,6 +1988,21 @@ LONG_STRING_CONST( ...@@ -1988,6 +1988,21 @@ LONG_STRING_CONST(
"features": [ "features": [
"add_and_true_to_loop_condition" "add_and_true_to_loop_condition"
] ]
},
{
"id": 187,
"description": "Rewrite do-while loops to simpler constructs on Mac",
"cr_bugs": [644669],
"os": {
"type": "macosx",
"version": {
"op": "<",
"value": "10.11"
}
},
"features": [
"rewrite_do_while_loops"
]
} }
] ]
// Please update the version number at beginning of this file whenever you // Please update the version number at beginning of this file whenever you
......
...@@ -13,6 +13,8 @@ ...@@ -13,6 +13,8 @@
// throughout the table. // throughout the table.
// clang-format off // clang-format off
#define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) \ #define GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) \
GPU_OP(ADD_AND_TRUE_TO_LOOP_CONDITION, \
add_and_true_to_loop_condition) \
GPU_OP(AVDA_DONT_COPY_PICTURES, \ GPU_OP(AVDA_DONT_COPY_PICTURES, \
avda_dont_copy_pictures) \ avda_dont_copy_pictures) \
GPU_OP(AVOID_EGL_IMAGE_TARGET_TEXTURE_REUSE, \ GPU_OP(AVOID_EGL_IMAGE_TARGET_TEXTURE_REUSE, \
...@@ -131,8 +133,8 @@ ...@@ -131,8 +133,8 @@
restore_scissor_on_fbo_change) \ restore_scissor_on_fbo_change) \
GPU_OP(REVERSE_POINT_SPRITE_COORD_ORIGIN, \ GPU_OP(REVERSE_POINT_SPRITE_COORD_ORIGIN, \
reverse_point_sprite_coord_origin) \ reverse_point_sprite_coord_origin) \
GPU_OP(ADD_AND_TRUE_TO_LOOP_CONDITION, \ GPU_OP(REWRITE_DO_WHILE_LOOPS, \
add_and_true_to_loop_condition) \ rewrite_do_while_loops) \
GPU_OP(REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH, \ GPU_OP(REWRITE_TEXELFETCHOFFSET_TO_TEXELFETCH, \
rewrite_texelfetchoffset_to_texelfetch) \ rewrite_texelfetchoffset_to_texelfetch) \
GPU_OP(SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS, \ GPU_OP(SCALARIZE_VEC_AND_MAT_CONSTRUCTOR_ARGS, \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment