Skip to content

Instantly share code, notes, and snippets.

View Bigpet's full-sized avatar

Peter Tissen Bigpet

View GitHub Profile
1> main.cpp
1>c:\program files (x86)\microsoft visual studio 12.0\vc\include\xmemory0(572): error C2280: 'std::unique_ptr<vfsStream,std::default_delete<_Ty>>::unique_ptr(const std::unique_ptr<_Ty,std::default_delete<_Ty>> &)' : attempting to reference a deleted function
1> with
1> [
1> _Ty=vfsStream
1> ]
1> c:\program files (x86)\microsoft visual studio 12.0\vc\include\memory(1486) : see declaration of 'std::unique_ptr<vfsStream,std::default_delete<_Ty>>::unique_ptr'
1> with
1> [
1> _Ty=vfsStream
In file included from /home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPUThread.cpp:6:0:
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h: In constructor ‘g_imm_table_struct::g_imm_table_struct()’:
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h:44:45: error: request for member ‘m128i_u32’ in ‘((g_imm_table_struct*)this)->g_imm_table_struct::fsm_table[i]’, which is of non-class type ‘__m128i {aka __vector(2) long long int}’
for (u32 j = 0; j < 4; j++) fsm_table[i].m128i_u32[j] = (i & (1 << j)) ? ~0 : 0;
^
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h:48:46: error: request for member ‘m128i_u16’ in ‘((g_imm_table_struct*)this)->g_imm_table_struct::fsmh_table[i]’, which is of non-class type ‘__m128i {aka __vector(2) long long int}’
for (u32 j = 0; j < 8; j++) fsmh_table[i].m128i_u16[j] = (i & (1 << j)) ? ~0 : 0;
^
/home/bigpet/DEV/rpcs3/rpcs3/Emu/Cell/SPURecompiler.h:52:47: error: request for member ‘m128
1 2 5 6 18 19
3 4 7 8 20 21
9 10 13 14
11 12 15 16
@Bigpet
Bigpet / gist:bd09041311145d16c7ad
Created June 2, 2014 15:43
interlockedOr_temp
int64_t InterlockedOr64(int64_t *dest,int64_t val)
{
int64_t olderval;
int64_t oldval = *dest;
do
{
olderval = oldval;
oldval = InterlockedCompareExchange64(dest,olderval | val, olderval);
}while(olderval!=oldval);
return oldval;
@Bigpet
Bigpet / twitch_past_broadcast_downloader.py
Last active August 29, 2015 14:05 — forked from baderj/twitch_past_broadcast_downloader.py
Downloads a twitch VoD by it's ID and saves some additional metadata in a log file
import requests
import sys
import json
import re
import os
import string
import argparse
BASE_URL = 'http://api.justin.tv'
LOGFILE_NAME = 'log.csv'
@Bigpet
Bigpet / gist:50b5475670130f048dc8
Created September 5, 2014 17:46
DS Game list
ActionRPG:
Castlevania - Dawn of Sorrow
Castlevania - Portrait of Ruin
The Legend of Zelda - Phantom Hourglass
Final Fantasy Crystal Chronicles - Ring of Fates
The Chronicles of Narnia - Prince Caspian
Castlevania - Order of Ecclesia
Rune Factory - A Fantasy Harvest Moon
Final Fantasy Crystal Chronicles - Echoes of Time
10:00 PM <Bigpet> Alright, I'm trying to understand what's left to merge the adhoc branch
10:01 PM <Bigpet> so there's callbacks that the game registers
10:01 PM <Bigpet> and these callbacks need to get executed by a seperate thread
10:01 PM <NeoJolt> Does PPSSPP 0.9.9.1 have support for Direct3D in 3D games?
10:01 PM <Bigpet> but the way that it currently creates the threads should only be used internally, do I get that right?
10:02 PM <NeoJolt> Or is it only OpenGl still?
10:02 PM <Bigpet> NeoJolt: officially only OpenGL, as long as there's no setting in the gui, consider the option to be for test purposes only
10:04 PM ⇐ frb and ultama121_ quit ↔ ultama121 nipped out
10:30 PM <Bigpet> [Unknown]: it seems like the only reason that __KernelSwitchToThread is not used is that it throws error log messages when it fails
10:30 PM <Bigpet> maybe those can be mad debug or info messages
@Bigpet
Bigpet / gist:ec9bddfedd075794c0d0
Last active August 29, 2015 14:08
Simple OpenGL test (needs GLFW , GLEW, GLM)
#include <iostream>
#include <string>
#include <sstream>
#include <vector>
#include <array>
#include <algorithm>
#ifndef OPENGL_INCLUDES_
#define OPENGL_INCLUDES_
// Include GLEW
#include "opencv2/opencv.hpp"
#include <GL/glew.h>
// Include GLFW
#include <glfw3.h>
GLFWwindow* window;
// Include GLM
#include "glm/glm.hpp"
Event Description CPU Time (ns) GPU Time (ns) API Error Message
0 (Start of Capture) 0x00010001 0 0
1 void glDepthMask(GLboolean flag = GL_TRUE) 0x00010001 12 0
2 void glEnable(GLenum cap = GL_BLEND) 0x00010001 11 0
3 void glBlendEquationSeparate(GLenum modeRGB = GL_FUNC_ADD, GLenum modeAlpha = GL_FUNC_ADD) 0x00010001 12 0
4 void glBlendFuncSeparate(GLenum sfactorRGB = GL_SRC_ALPHA, GLenum dfactorRGB = GL_ONE_MINUS_SRC_ALPHA, GLenum sfactorAlpha = GL_MAP_READ_BIT, GLenum dfactorAlpha = GL_ZERO) 0x00010001 4 0
5 void glBlendColor(GLclampf red = 1.000000, GLclampf green = 1.000000, GLclampf blue = 1.000000, GLclampf alpha = 1.000000) 0x00010001 4 0
6 void glDisable(GLenum cap = GL_SCISSOR_TEST) 0x00010001 10 0
7 void glScissor(GLint x = 953, GLint y = 10, GLsizei width = 290, GLsizei height = 698) 0x00010001 5 0
8 void glDisable(GLenum cap = GL_CULL_FACE) 0x00010001 3 0