Texture Instruction - Fixed Color
This commit is contained in:
committed by
Blaise Tine
parent
c161f5c89c
commit
7587876820
9
runtime/src/vx_tex.S
Normal file
9
runtime/src/vx_tex.S
Normal 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
13
runtime/src/vx_tex.c
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user