2 * Copyright 2007 Nouveau Project
4 * Permission is hereby granted, free of charge, to any person obtaining a
5 * copy of this software and associated documentation files (the "Software"),
6 * to deal in the Software without restriction, including without limitation
7 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
8 * and/or sell copies of the Software, and to permit persons to whom the
9 * Software is furnished to do so, subject to the following conditions:
11 * The above copyright notice and this permission notice shall be included in
12 * all copies or substantial portions of the Software.
14 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
17 * THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
18 * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF
19 * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23 #ifndef __NV30_SHADERS_H__
24 #define __NV30_SHADERS_H__
26 #define NV_SHADER_MAX_PROGRAM_LENGTH 256
28 #include "nv_include.h"
30 typedef struct nv_shader {
42 uint32_t data[NV_SHADER_MAX_PROGRAM_LENGTH];
45 void NV40_LoadVtxProg(ScrnInfoPtr pScrn, nv_shader_t *shader);
46 void NV40_LoadFragProg(ScrnInfoPtr pScrn, nv_shader_t *shader);
47 void NV30_LoadFragProg(ScrnInfoPtr pScrn, nv_shader_t *shader);
50 /*******************************************************************************
51 * NV40/G70 vertex shaders
54 nv_shader_t nv40_vp_exa_render;
55 nv_shader_t nv40_vp_video;
57 /*******************************************************************************
58 * NV30/NV40/G70 fragment shaders
61 nv_shader_t nv30_fp_pass_col0;
62 nv_shader_t nv30_fp_pass_tex0;
63 nv_shader_t nv30_fp_composite_mask;
64 nv_shader_t nv30_fp_composite_mask_sa_ca;
65 nv_shader_t nv30_fp_composite_mask_ca;
66 nv_shader_t nv30_fp_yv12_bicubic;
67 nv_shader_t nv30_fp_yv12_bilinear;
68 nv_shader_t nv40_fp_yv12_bicubic;