1 #ifndef __NV30_SHADERS_H__
2 #define __NV30_SHADERS_H__
4 #define NV_SHADER_MAX_PROGRAM_LENGTH 256
6 #include "nv_include.h"
8 typedef struct nv_shader {
20 uint32_t data[NV_SHADER_MAX_PROGRAM_LENGTH];
23 void NV40_LoadVtxProg(ScrnInfoPtr pScrn, nv_shader_t *shader);
24 void NV40_LoadFragProg(ScrnInfoPtr pScrn, nv_shader_t *shader);
25 void NV30_LoadFragProg(ScrnInfoPtr pScrn, nv_shader_t *shader);
28 /*******************************************************************************
29 * NV40/G70 vertex shaders
32 nv_shader_t nv40_vp_exa_render;
33 nv_shader_t nv40_vp_video;
35 /*******************************************************************************
36 * NV30/NV40/G70 fragment shaders
39 nv_shader_t nv30_fp_pass_col0;
40 nv_shader_t nv30_fp_pass_tex0;
41 nv_shader_t nv30_fp_composite_mask;
42 nv_shader_t nv30_fp_composite_mask_sa_ca;
43 nv_shader_t nv30_fp_composite_mask_ca;
44 nv_shader_t nv30_fp_yv12_bicubic;
45 nv_shader_t nv30_fp_yv12_bilinear;
46 nv_shader_t nv40_fp_yv12_bicubic;