Skip to content

Instantly share code, notes, and snippets.

View jrmuizel's full-sized avatar

Jeff Muizelaar jrmuizel

View GitHub Profile
diff --git a/build/config/compiler/pgo/BUILD.gn b/build/config/compiler/pgo/BUILD.gn
index f8293b2ef03f9..97e985cecc374 100644
--- a/build/config/compiler/pgo/BUILD.gn
+++ b/build/config/compiler/pgo/BUILD.gn
@@ -127,21 +127,21 @@ config("pgo_optimization_flags") {
# and at least some profile data always ends up being considered
# out of date, so make sure we don't error for those cases.
"-Wno-profile-instr-unprofiled",
"-Wno-profile-instr-out-of-date",
@jrmuizel
jrmuizel / test.c
Last active February 9, 2024 17:25
#include <assert.h>
#include <bsm/audit.h>
#include <bsm/audit_session.h>
int main() {
auditinfo_addr_t auditInfo;
int result = getaudit_addr(&auditInfo, sizeof(auditInfo));
assert(result == 0 );
printf("got audit result: %d, uid %d\n", result, auditInfo.ai_auid);
#include <assert.h>
#include <bsm/audit.h>
#include <bsm/audit_session.h>
int main() {
auditinfo_addr_t auditInfo;
int result = getaudit_addr(&auditInfo, sizeof(auditInfo));
assert(result == 0 );
if (auditInfo.ai_flags & AU_SESSION_FLAG_IS_INITIAL) {
diff --git a/dom/canvas/CanvasRenderingContext2D.cpp b/dom/canvas/CanvasRenderingContext2D.cpp
index d84935f7c3f00..712ba15324623 100644
--- a/dom/canvas/CanvasRenderingContext2D.cpp
+++ b/dom/canvas/CanvasRenderingContext2D.cpp
@@ -1054,21 +1054,20 @@ CanvasRenderingContext2D::CanvasRenderingContext2D(
mOpaqueAttrValue(false),
mContextAttributesHasAlpha(true),
mOpaque(false),
mResetLayer(true),
mIPC(false),
06-22 12:44:24.176 3350 3365 I Gecko : {"action":"test_start","time":1655901864176,"thread":null,"pid":null,"source":"reftest","test":"image/test/crashtests/944353.jpg"}
06-22 12:44:24.177 3350 3365 I Gecko : REFTEST TEST-LOAD | http://10.0.2.2:8854/tests/image/test/crashtests/944353.jpg | 1381 / 3939 (35%)
06-22 12:44:24.177 3350 3365 I Gecko :
06-22 12:44:24.177 3350 3365 I Gecko : {"action":"log","time":1655901864177,"thread":null,"pid":null,"source":"reftest","level":"DEBUG","message":"START http://10.0.2.2:8854/tests/image/test/crashtests/944353.jpg"}
06-22 12:44:24.188 3425 3449 E eglCodecCommon: glUtilsParamSize: unknow param 0x00008caa
06-22 12:44:24.269 3375 3478 I Gecko : LaunchDecodingAsync http://10.0.2.2:8854/tests/image/test/crashtests/944353.jpg
06-22 12:44:24.269 3375 3503 I Gecko : DecodingTask::Run(0x7b07e1bc2430)
06-22 12:44:24.275 3350 3365 D GeckoViewContent: handleEvent: pagetitlechanged
06-22 12:44:24.287 3375 3392 I Gecko : LookupFrame http://10.0.2.2:8
@jrmuizel
jrmuizel / gist:cc1ebd9ab02b5ce45fdbc38c6a1cbe1e
Created May 25, 2021 20:03
blendTextureLinearR8 inner loop
+0x210 movaps -288(%rbp), %xmm0
+0x217 maxps -464(%rbp), %xmm0
+0x21e minps -448(%rbp), %xmm0
+0x225 movaps -304(%rbp), %xmm2
+0x22c maxps -496(%rbp), %xmm2
+0x233 minps -480(%rbp), %xmm2
+0x23a cvttps2dq %xmm0, %xmm1
+0x23e cvttps2dq %xmm2, %xmm0
+0x242 movdqa %xmm1, %xmm2
+0x246 pcmpeqd %xmm12, %xmm12
@jrmuizel
jrmuizel / d3d.asm
Created May 7, 2021 16:19
gen6 min d3d asm
vs_4_1
dcl_globalFlags refactoringAllowed
dcl_constantbuffer cb0[5], immediateIndexed
dcl_resource_texture2d (float,float,float,float) textures2D[2] (t2)
dcl_input v0.xy
dcl_output_siv o0.xyzw, position
dcl_output o1.xyzw
dcl_output o2.xy
dcl_temps 3
0: mul r0.xy, v0.xyxx, l(427.0000, 640.0000, 0.0000, 0.0000)
VS_OUTPUT main(VS_INPUT input)
{
initAttributes(input);
gl_Position = mul(transpose(_uTransform), float4((float2(10.00, 10.00) + (float2(427.00, 256.00) * _aPosition)), 1., 1.));
float2 texture_size = {100000, 100000};
int format = int_ctor(gl_texture2DFetch(_sGpuCache, int2(1022, 1), 0).z);
@jrmuizel
jrmuizel / gist:4fdfbcd866038aa8594bd1a2b6e1c9cf
Created March 18, 2021 13:04
put_expression stack frame
# ddbug -p all -c function --filter namespace=naga::back::msl::writer ../naga/target/debug/convert
fn naga::back::msl::writer::Writer<alloc::vec::Vec<u8, alloc::alloc::Global>>::put_expression<alloc::vec::Vec<u8, alloc::alloc::Global>>
linkage name: _ZN4naga4back3msl6writer15Writer$LT$W$GT$14put_expression17had88f865a63411edE
source: /root/naga/src/back/msl/writer.rs:201
address: 0x0-0xb2d2
size: 45779
return type:
[96] struct core::result::Result<(), naga::back::msl::Error>
parameters:
Counter({ 'EMPTY: no crashing thread identified - None': 80,
'mozalloc_abort | alloc::alloc::__alloc_error_handler::__rg_oom - MOZ_CRASH()': 32,
'<unknown in igd11dxva64.dll> | NDXGI::CDevice::TrimNotificationCallback - None': 29,
'mozilla::dom::WebGLParent::RecvDispatchCommands - MOZ_CRASH(Illegal ID in DispatchCommand)': 26,
'<unknown in igd10iumd64.dll> | CD3DDeviceCommon::CopyRect - None': 26,
'<unknown in igd10iumd64.dll> | CD3DDeviceLevel1::ProcessDeferredOperations - None': 19,
'AmdDxGsaFreeCompiledShader - None': 19,
'<unknown in nvwgf2umx_cfg.dll> | BaseThreadInitThunk - None': 18,
'memcpy | mozilla::RemoteVideoDecoderParent::ProcessDecodedData - None': 17,
'<unknown in igd10iumd64.dll> | CContext::UMQueryOM_RenderTargets_ - None': 16,