Skip to content

Commit a5d5158

Browse files
zhenyaoChromium LUCI CQ
authored and
Chromium LUCI CQ
committed
Remove five macOS gpu workarounds.
* disable_overlay_ca_layers: no longer applies anywhere The following four workarounds apply to validating cmd buffer only: * emulate_abs_int_function * emulate_isnan_on_float * init_one_cube_map_level_before_copyteximage * init_two_cube_map_levels_before_copyteximage TEST=bots R=kbr@chrmoimu.org,geofflang@chromium.org Bug: 1136972,543324,580616,642227,648197,650547,828031 Change-Id: I25913447b9a1235bb352a075e7523ac819da687c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4869742 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org> Auto-Submit: Zhenyao Mo <zmo@chromium.org> Cr-Commit-Position: refs/heads/main@{#1198513}
1 parent f28605b commit a5d5158

File tree

3 files changed

+0
-147
lines changed

3 files changed

+0
-147
lines changed

gpu/command_buffer/service/gles2_cmd_decoder.cc

-49
Original file line numberDiff line numberDiff line change
@@ -3892,16 +3892,12 @@ bool GLES2DecoderImpl::InitializeShaderTranslator() {
38923892
driver_bug_workarounds.scalarizeVecAndMatConstructorArgs = true;
38933893
if (workarounds().regenerate_struct_names)
38943894
driver_bug_workarounds.regenerateStructNames = true;
3895-
if (workarounds().emulate_abs_int_function)
3896-
driver_bug_workarounds.emulateAbsIntFunction = true;
38973895
if (workarounds().rewrite_texelfetchoffset_to_texelfetch)
38983896
driver_bug_workarounds.rewriteTexelFetchOffsetToTexelFetch = true;
38993897
if (workarounds().add_and_true_to_loop_condition)
39003898
driver_bug_workarounds.addAndTrueToLoopCondition = true;
39013899
if (workarounds().rewrite_do_while_loops)
39023900
driver_bug_workarounds.rewriteDoWhileLoops = true;
3903-
if (workarounds().emulate_isnan_on_float)
3904-
driver_bug_workarounds.emulateIsnanFloatFunction = true;
39053901
if (workarounds().use_unused_standard_shared_blocks)
39063902
driver_bug_workarounds.useUnusedStandardSharedBlocks = true;
39073903
if (workarounds().remove_invariant_and_centroid_for_essl3)
@@ -14588,58 +14584,13 @@ void GLES2DecoderImpl::DoCopyTexImage2D(
1458814584
}
1458914585
}
1459014586
} else {
14591-
if (workarounds().init_two_cube_map_levels_before_copyteximage &&
14592-
texture->target() == GL_TEXTURE_CUBE_MAP &&
14593-
target != GL_TEXTURE_CUBE_MAP_POSITIVE_X) {
14594-
for (int i = 0; i < 2; ++i) {
14595-
TextureManager::DoTexImageArguments args = {
14596-
target,
14597-
i,
14598-
final_internal_format,
14599-
width,
14600-
height,
14601-
1,
14602-
border,
14603-
format,
14604-
type,
14605-
nullptr,
14606-
pixels_size,
14607-
0,
14608-
TextureManager::DoTexImageArguments::CommandType::kTexImage2D};
14609-
texture_manager()->WorkaroundCopyTexImageCubeMap(
14610-
&texture_state_, &state_, error_state_.get(), &framebuffer_state_,
14611-
texture_ref, func_name, args);
14612-
}
14613-
}
14614-
1461514587
if (requires_luma_blit) {
1461614588
copy_tex_image_blit_->DoCopyTexImage2DToLUMACompatibilityTexture(
1461714589
this, texture->service_id(), texture->target(), target, format, type,
1461814590
level, internal_format, x, y, width, height,
1461914591
GetBoundReadFramebufferServiceId(),
1462014592
GetBoundReadFramebufferInternalFormat());
1462114593
} else {
14622-
if (workarounds().init_one_cube_map_level_before_copyteximage &&
14623-
texture->target() == GL_TEXTURE_CUBE_MAP &&
14624-
target != GL_TEXTURE_CUBE_MAP_POSITIVE_X) {
14625-
TextureManager::DoTexImageArguments args = {
14626-
target,
14627-
level,
14628-
final_internal_format,
14629-
width,
14630-
height,
14631-
1,
14632-
border,
14633-
format,
14634-
type,
14635-
nullptr,
14636-
pixels_size,
14637-
0,
14638-
TextureManager::DoTexImageArguments::CommandType::kTexImage2D};
14639-
texture_manager()->WorkaroundCopyTexImageCubeMap(
14640-
&texture_state_, &state_, error_state_.get(), &framebuffer_state_,
14641-
texture_ref, func_name, args);
14642-
}
1464314594
if (workarounds().clear_pixel_unpack_buffer_before_copyteximage)
1464414595
state_.PushTextureUnpackState();
1464514596
api()->glCopyTexImage2DFn(target, level, final_internal_format, x, y,

gpu/config/gpu_driver_bug_list.json

-93
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,6 @@
969969
"vendor_id": "0x1002",
970970
"device_id": ["0x9440", "0x944a", "0x9488", "0x9490"],
971971
"features": [
972-
"disable_overlay_ca_layers",
973972
"disable_post_sub_buffers_for_onscreen_surfaces"
974973
]
975974
},
@@ -1162,23 +1161,6 @@
11621161
"EGL_KHR_fence_sync"
11631162
]
11641163
},
1165-
{
1166-
"id": 158,
1167-
"description": "IOSurface use becomes pathologically slow over time on 10.10.",
1168-
"cr_bugs": [580616],
1169-
"os": {
1170-
"type": "macosx",
1171-
"version": {
1172-
"op": "=",
1173-
"value": "10.10"
1174-
}
1175-
},
1176-
"vendor_id": "0x10de",
1177-
"device_id": ["0x0fd5"],
1178-
"features": [
1179-
"disable_overlay_ca_layers"
1180-
]
1181-
},
11821164
{
11831165
"id": 159,
11841166
"cr_bugs": [570897],
@@ -1410,18 +1392,6 @@
14101392
"gl_clear_broken"
14111393
]
14121394
},
1413-
{
1414-
"id": 183,
1415-
"description": "Result of abs(i) where i is an integer in vertex shader is wrong",
1416-
"cr_bugs": [642227],
1417-
"os": {
1418-
"type": "macosx"
1419-
},
1420-
"vendor_id": "0x8086",
1421-
"features": [
1422-
"emulate_abs_int_function"
1423-
]
1424-
},
14251395
{
14261396
"id": 184,
14271397
"description": "Rewrite texelFetchOffset to texelFetch for Intel Mac",
@@ -1477,22 +1447,6 @@
14771447
"rewrite_do_while_loops"
14781448
]
14791449
},
1480-
{
1481-
"id": 189,
1482-
"description": "Do TexImage2D first before CopyTexImage2D for cube map texture on Intel Mac 10.11",
1483-
"cr_bugs": [648197],
1484-
"os": {
1485-
"type": "macosx",
1486-
"version": {
1487-
"op": "<=",
1488-
"value": "10.11"
1489-
}
1490-
},
1491-
"vendor_id": "0x8086",
1492-
"features": [
1493-
"init_one_cube_map_level_before_copyteximage"
1494-
]
1495-
},
14961450
{
14971451
"id": 190,
14981452
"description": "Disable partial swaps on Mesa drivers (detected with GL_VERSION)",
@@ -1506,24 +1460,6 @@
15061460
"disable_post_sub_buffers_for_onscreen_surfaces"
15071461
]
15081462
},
1509-
{
1510-
"id": 191,
1511-
"description": "Emulate GLSL function isnan() on Intel Mac",
1512-
"cr_bugs": [650547],
1513-
"os": {
1514-
"type": "macosx",
1515-
"version": {
1516-
"op": "<",
1517-
"value": "10.13.2"
1518-
}
1519-
},
1520-
"intel_gpu_series" : [
1521-
"skylake"
1522-
],
1523-
"features" : [
1524-
"emulate_isnan_on_float"
1525-
]
1526-
},
15271463
{
15281464
"id": 192,
15291465
"description": "Decode and encode before generateMipmap for srgb format textures on os except macosx",
@@ -1555,22 +1491,6 @@
15551491
"decode_encode_srgb_for_generatemipmap"
15561492
]
15571493
},
1558-
{
1559-
"id": 194,
1560-
"description": "Init first two levels before CopyTexImage2D for cube map texture on Intel Mac 10.12",
1561-
"cr_bugs": [648197],
1562-
"os": {
1563-
"type": "macosx",
1564-
"version": {
1565-
"op": ">=",
1566-
"value": "10.12"
1567-
}
1568-
},
1569-
"vendor_id": "0x8086",
1570-
"features": [
1571-
"init_two_cube_map_levels_before_copyteximage"
1572-
]
1573-
},
15741494
{
15751495
"id": 195,
15761496
"description": "Insert statements to reference all members in unused std140/shared blocks on Mac",
@@ -2416,19 +2336,6 @@
24162336
"disable_direct_composition"
24172337
]
24182338
},
2419-
{
2420-
"id": 279,
2421-
"description": "WindowServer crashes on VMWare bots using CA renderer",
2422-
"cr_bugs": [828031],
2423-
"os": {
2424-
"type": "macosx"
2425-
},
2426-
"vendor_id": "0x15ad",
2427-
"multi_gpu_category": "any",
2428-
"features": [
2429-
"disable_overlay_ca_layers"
2430-
]
2431-
},
24322339
{
24332340
"id": 280,
24342341
"description": "ReadPixels is broken with EXT_multisampled_render_to_texture on recent Adreno drivers.",

gpu/config/gpu_workaround_list.txt

-5
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ disable_metal
4949
disable_multisampling_color_mask_usage
5050
disable_nv12_dxgi_video
5151
disable_nv12_dynamic_textures
52-
disable_overlay_ca_layers
5352
disable_post_sub_buffers_for_onscreen_surfaces
5453
disable_program_cache
5554
disable_program_caching_for_transform_feedback
@@ -68,8 +67,6 @@ dont_delete_source_texture_for_egl_image
6867
dont_initialize_uninitialized_locals
6968
dont_use_eglclientwaitsync_with_timeout
7069
dont_use_loops_to_initialize_variables
71-
emulate_abs_int_function
72-
emulate_isnan_on_float
7370
enable_bgra8_overlays_with_yuv_overlay_support
7471
enable_webgl_timer_query_extensions
7572
etc1_power_of_two_only
@@ -90,9 +87,7 @@ force_rgb10a2_overlay_support
9087
force_update_scissor_state_when_binding_fbo0
9188
gl_clear_broken
9289
init_gl_position_in_vertex_shader
93-
init_one_cube_map_level_before_copyteximage
9490
init_texture_max_anisotropy
95-
init_two_cube_map_levels_before_copyteximage
9691
init_vertex_attributes
9792
limit_d3d11_video_decoder_to_11_0
9893
max_3d_array_texture_size_1024

0 commit comments

Comments
 (0)