Texture Instruction - Fixed Color

This commit is contained in:
Krishna Yalamarthy
2021-03-12 18:33:04 -05:00
committed by Blaise Tine
parent c161f5c89c
commit 7587876820
49 changed files with 2636 additions and 63 deletions

9
runtime/src/vx_tex.S Normal file
View File

@@ -0,0 +1,9 @@
#include <VX_config.h>
@ .type vx_tex_ld, @function
@ .global vx_tex_ld
@ vx_tex_ld:
@ slli a1,a1,0x8
@ or a1,a1,a0
@ .word 0x5ae7952b
@ ret

13
runtime/src/vx_tex.c Normal file
View File

@@ -0,0 +1,13 @@
#include <vx_tex.h>
#include <vx_intrinsics.h>
#include <inttypes.h>
#ifdef __cplusplus
extern "C" {
#endif
#define NUM_CORES_MAX 32
int vx_tex(unsigned t, unsigned u, unsigned v, unsigned lod){
return vx_tex_ld(t,u,v,lod);
}