Skip to content

Instantly share code, notes, and snippets.

View pendingchaos's full-sized avatar

PendingChaos pendingchaos

  • Earth
View GitHub Profile
38ac49d30e00000003d9a29a67fb4bb50100030002100031c1f2e6bf714350be5805216afc5aff0304000100000004200037f2df1e95dbfca2101e8786486fa01893258cfd343f67b9fb12798cff8fe9aa052000e633c970cf2aa9eb4c906ffb59e92c021540c0d8e3800c39aac4daa85f0805ea0608007017000000000000071000778c3f079856c185acd1e93aa1450753082000057173040fa9e4b1329119c9916a040a1409981c4b657d58c85607ff1babf8ac0920007a67e7515fa5152902459a94545811c53b9136c295b4ae5b87de12455ba39d350a0400020000000004000d0a0d0a18c8b11fac90e6961f5a5126d9839de34fce3603ff405e6f68ba93a11727522263622c1744b4a128f0cc35a2eff91529bd65e26257de5c571d35acaa1858e5c2b072b1ba3ca4408a0e5903a3f6c6d74a29f64eae9a431db7c15c1b3ffa3af277d651587e7f88fd40652e34616b79ca2927068540ea3952df568c207157a927969d2f10c10fdf3feef2ddc871aae283dbb47e45309eac85b70f0ef80518da2a051071113999c50df9af263446e4f5eea9f87f051456013e756128f246fe813a789a0c625c52b549f61a28ca9ed6e406406adf32b2d247add39206470a41f0ce8ad154d5fbafe99323de8c45a662edd637f676ced721899d5b66a9de216729b7cf29f7feafae942cdb4207237b479593e7b49787c92fa71af78a6f
@pendingchaos
pendingchaos / glxspheres.c
Last active July 5, 2018 13:48
VirtualGL's glxspheres without dependencies on the rest of VirtualGL
/* Copyright (C)2007 Sun Microsystems, Inc.
* Copyright (C)2011, 2013-2015, 2017-2018 D. R. Commander
*
* This library is free software and may be redistributed and/or modified under
* the terms of the wxWindows Library License, Version 3.1 or (at your option)
* any later version. The full license is in the LICENSE.txt file included
* with this distribution.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@pendingchaos
pendingchaos / mesa.diff
Last active September 19, 2018 20:29
glBufferSubData p2mf/m2mf performance test
diff --git a/src/gallium/drivers/nouveau/nouveau_buffer.c b/src/gallium/drivers/nouveau/nouveau_buffer.c
index 2c604419ce..c846678dde 100644
--- a/src/gallium/drivers/nouveau/nouveau_buffer.c
+++ b/src/gallium/drivers/nouveau/nouveau_buffer.c
@@ -147,7 +147,9 @@ nouveau_transfer_staging(struct nouveau_context *nv,
if (!nv->push_data)
permit_pb = false;
- if ((size <= NOUVEAU_TRANSFER_PUSHBUF_THRESHOLD) && permit_pb) {
+ int pb = atoi(getenv("PB"));