Skip to content

Instantly share code, notes, and snippets.

James Ross-Gowan rossy

Block or report user

Report or block rossy

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
View test.opt.comp.spv
; SPIR-V
; Version: 1.0
; Generator: Google Shaderc over Glslang; 7
; Bound: 41
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
View test.comp.spv
; SPIR-V
; Version: 1.0
; Generator: Google Shaderc over Glslang; 7
; Bound: 40
; Schema: 0
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint GLCompute %main "main"
OpExecutionMode %main LocalSize 1 1 1
@rossy
rossy / dxgiinfo-amd.txt
Created Jan 2, 2018
dxgiinfo results for AMD switchable graphics
View dxgiinfo-amd.txt
Adapter 0:
Device Name: AMD Radeon R7 M360
Device ID: 1002:6900 (rev 81)
Subsystem ID: 1028:06de
LUID: 0000000000008d7e
Output 0:
Device Name: \\.\DISPLAY1
Coordinates: 1920x1080+0+0
Attached to desktop: TRUE
Bits-per-color: 8
View dxgiinfo.txt
Adapter 0:
Device Name: NVIDIA GeForce GTX 670
Device ID: 10de:1189 (rev a1)
Subsystem ID: 1043:841a
LUID: 0000000000008fc8
Output 0:
Device Name: \\.\DISPLAY1
Coordinates: 2560x1440+0+0
Attached to desktop: TRUE
Bits-per-color: 8
View dxgiinfo.c
// gcc -Wall dxgiinfo.c -o dxgiinfo -ldxgi -ld3d11
#define COBJMACROS
#include <initguid.h>
#include <stdbool.h>
#include <stdio.h>
#include <conio.h>
#include <dxgi1_5.h>
#include <d3d11.h>
View locale-test.c
#define __USE_MINGW_ANSI_STDIO 1
#include <stdint.h>
#include <stdio.h>
#include <locale.h>
int main()
{
_locale_t c = _create_locale(LC_ALL, "C");
_locale_t fr = _create_locale(LC_ALL, "french");
View gist:0e717440fa5b8e35020c054ff5c0732e
[vf] Using conversion filter.
[vf] Video filter chain:
[vf] [in] 1280x720 d3d11_nv12[nv12] bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264
[vf] [d3d11vpp] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264 [a]
[vf] [out] 1280x720 d3d11[nv12] bt.709/bt.709/bt.1886/limited SP=1.000000 CL=mpeg2/4/h264
[cplayer] VO: [gpu] 1280x720 d3d11[nv12]
View gist:79d2b28b58f1a61bcf9e2c28d2530cc6
get file ids win8: 569e23f49e23caf7 0000000000000000002c000000009866
get file ids win8: 569e23f49e23caf7 00000000000000000010000000008f8d
get file ids win8: 569e23f49e23caf7 00000000000000000010000000008f8d
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000001d000000026e69
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 0000000000000000003800000000e563
get file ids win8: 569e23f49e23caf7 00000000000000000004000000000320
View gist:c2d6ed766fff737cf480075954c12f8e
Playing: D:/Videos/
file id: 0x00000000000000000001000000000048
[file] This is a directory - adding to playlist.
file id: 0x0000000000000000000300000000b289
file id: 0x0000000000000000000100000000b05e
file id: 0x0000000000000000000200000000af76
file id: 0x00000000000000000001000000003369
file id: 0x0000000000000000000100000000b05d
file id: 0x0000000000000000000100000000dd0c
file id: 0x00000000000000000001000000000049
View gist:55f71c4d6e03d0bcd7fd54d53047604a
[vo/gpu/d3d11] D3DCompile failed: Unspecified error (0x80004005)
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,46-51): error X3004: undeclared identifier '_22_m0'
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,17-52): error X3013: 'lerp': no matching 3 parameter intrinsic function
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,17-52): error X3013: Possible intrinsic functions are:
[vo/gpu/d3d11] C:\msys64\home\rossy\mpv\Shader@0x000000001529CFA0(58,17-52): error X3013: lerp(float|half|min10float|min16float, float|half|min10float|min16float, float|half|min10float|min16float)
[vo/gpu/d3d11] GLSL source:
[vo/gpu/d3d11] [ 1] #version 450
[vo/gpu/d3d11] [ 2] #define tex1D texture
[vo/gpu/d3d11] [ 3] #define tex3D texture
[vo/gpu/d3d11] [ 4] #define LUT_POS(x, lut_size) mix(0.5 / (lut_size), 1.0 - 0.5 / (lut_size), (x))
You can’t perform that action at this time.