Skip to content

Instantly share code, notes, and snippets.

Vedran Rodic vrodic

Block or report user

Report or block vrodic

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vrodic
vrodic / gist:b26babf628a15df6fea3
Created Mar 1, 2015
Build 32bit Mesa on 64bit host (for 32bit game clients)
View gist:b26babf628a15df6fea3
export PKG_CONFIG_PATH=/usr/lib/i386-linux-gnu/pkgconfig
CFLAGS="-m32" CXXFLAGS="-m32" ./autogen.sh --prefix=/usr --libdir=/usr/lib32
#apt-get install libdrm-dev:i386
#apt-get install libgles2-mesa-dev:i386 libglu1-mesa-dev:i386 mesa-common-dev:i386 libegl1-mesa-dev:i386 libgl1-mesa-dev:i386
#apt-get install libfontconfig1-dev:i386 libfreetype6-dev:i386
#apt-get install libnl-dev libudev-dev:i386 libxml2-dev:i386 libxslt1-dev:i386
#apt-get install libegl1-mesa-dev:i386 libfontconfig1-dev:i386 libfreetype6-dev:i386 libgl1-mesa-dev:i386 libgles2-mesa-dev:i386 libglu1-mesa-dev:i386 libxcomposite-dev:i386 libxdamage-dev:i386 libxi-dev:i386 libxrandr-dev:i386 libxtst-dev:i386
#make clean
export CFLAGS="-m32 -O3 -mtune=native -march=native -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security"
@vrodic
vrodic / gist:6437312
Created Sep 4, 2013
Dota 2 wine/intel optimizations, patched against Wine git, details here: http://vrodic.blogspot.com/2013/08/dota-2-wine-optimization-for-intel-gpus.html
View gist:6437312
diff --git a/dlls/wined3d/context.c b/dlls/wined3d/context.c
index 123e9b1..980c389 100644
--- a/dlls/wined3d/context.c
+++ b/dlls/wined3d/context.c
@@ -2255,8 +2255,8 @@ BOOL context_apply_clear_state(struct wined3d_context *context, const struct win
* driver show that disabling blending when clearing improves the clearing
* performance incredibly. */
gl_info->gl_ops.gl.p_glDisable(GL_BLEND);
- gl_info->gl_ops.gl.p_glEnable(GL_SCISSOR_TEST);
- checkGLcall("glEnable GL_SCISSOR_TEST");
@vrodic
vrodic / gist:6249950
Created Aug 16, 2013
Dota 2 wine/intel optimizations, patched against Wine git 1825bddbff5db772cc82613bf854e25154bafbaf , details here: http://vrodic.blogspot.com/2013/08/dota-2-wine-optimization-for-intel-gpus.html
View gist:6249950
diff --git a/dlls/wined3d/device.c b/dlls/wined3d/device.c
index de36741..e5111e39 100644
--- a/dlls/wined3d/device.c
+++ b/dlls/wined3d/device.c
@@ -657,6 +657,7 @@ void device_clear_render_targets(struct wined3d_device *device, UINT rt_count, c
if (!clear_rect)
{
+ /*
if (render_offscreen)
@vrodic
vrodic / gist:6245046
Created Aug 15, 2013
Dota 2 Intel IvyBridge OpenGL
View gist:6245046
This system supports the OpenGL extension GL_EXT_framebuffer_object.
This system supports the OpenGL extension GL_EXT_framebuffer_blit.
This system supports the OpenGL extension GL_EXT_framebuffer_multisample.
This system DOES NOT support the OpenGL extension GL_APPLE_fence.
This system DOES NOT support the OpenGL extension GL_NV_fence.
This system supports the OpenGL extension GL_ARB_sync.
This system supports the OpenGL extension GL_EXT_draw_buffers2.
This system DOES NOT support the OpenGL extension GL_EXT_bindable_uniform.
This system DOES NOT support the OpenGL extension GL_APPLE_flush_buffer_range.
This system supports the OpenGL extension GL_ARB_map_buffer_range.
@vrodic
vrodic / gist:6235313
Created Aug 14, 2013
Dota 2 glretrace performance warnings on Intel IvyBridge HD 4000 GPU
View gist:6235313
1197: glDebugOutputCallback: Medium severity API performance issue 1, Recompiling fragment shader for program 6
1197: glDebugOutputCallback: Medium severity API performance issue 2, fragment color clamping 1->0
11125: glDebugOutputCallback: Medium severity API performance issue 1, Recompiling fragment shader for program 843
11125: glDebugOutputCallback: Medium severity API performance issue 2, fragment color clamping 1->0
11275: glDebugOutputCallback: Medium severity API performance issue 1, Recompiling fragment shader for program 6
@vrodic
vrodic / gist:6229887
Created Aug 14, 2013
my steam sysinfo
View gist:6229887
Processor Information:
Vendor: GenuineIntel
CPU Family: 0x6
CPU Model: 0x3a
CPU Stepping: 0x9
CPU Type: 0x0
Speed: 3300 Mhz
4 logical processors
2 physical processors
HyperThreading: Supported
@vrodic
vrodic / gist:6229500
Created Aug 14, 2013
Dota 2 glretrace performance warnings on Intel IvyBridge
View gist:6229500
I've made a trace of Dota 2 with apitrace, resulting in multiple performance warnings per frame looking like this when doing glretrace on the resulting file.
824941: glDebugOutputCallback: Medium severity API performance issue 4, Using a blit copy to avoid stalling on 12b glBufferSubData() to a busy buffer object.
824957: glDebugOutputCallback: Medium severity API performance issue 4, Using a blit copy to avoid stalling on 128b glBufferSubData() to a busy buffer object.
824958: glDebugOutputCallback: Medium severity API performance issue 4, Using a blit copy to avoid stalling on 12b glBufferSubData() to a busy buffer object.
824971: glDebugOutputCallback: Medium severity API performance issue 12, Clear color unsupported by fast color clear. Falling back to slow clear.
@vrodic
vrodic / gist:6018149
Created Jul 17, 2013
Steam System Information
View gist:6018149
Processor Information:
Vendor: GenuineIntel
Speed: 2601 Mhz
4 logical processors
2 physical processors
HyperThreading: Supported
FCMOV: Supported
SSE2: Supported
SSE3: Supported
SSSE3: Supported
You can’t perform that action at this time.