~ubuntu-branches/ubuntu/trusty/xserver-xorg-video-nouveau/trusty

« back to all changes in this revision

Viewing changes to src/nv30_shaders.h

  • Committer: Bazaar Package Importer
  • Author(s): Chris Lamb
  • Date: 2008-07-06 20:26:53 UTC
  • Revision ID: james.westby@ubuntu.com-20080706202653-e99oiii765j3a0qn
Tags: upstream-0.0.10~git+20080706+b1f3169
ImportĀ upstreamĀ versionĀ 0.0.10~git+20080706+b1f3169

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
 * Copyright 2007 Nouveau Project
 
3
 *
 
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:
 
10
 *
 
11
 * The above copyright notice and this permission notice shall be included in
 
12
 * all copies or substantial portions of the Software.
 
13
 *
 
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
 
20
 * SOFTWARE.
 
21
 */
 
22
 
 
23
#ifndef __NV30_SHADERS_H__
 
24
#define __NV30_SHADERS_H__
 
25
 
 
26
#define NV_SHADER_MAX_PROGRAM_LENGTH 256
 
27
 
 
28
#include "nv_include.h"
 
29
 
 
30
typedef struct nv_shader {
 
31
        uint32_t hw_id;
 
32
        uint32_t size;
 
33
        union {
 
34
                struct {
 
35
                        uint32_t vp_in_reg;
 
36
                        uint32_t vp_out_reg;
 
37
                } NV30VP;
 
38
                struct  {
 
39
                        uint32_t num_regs;
 
40
                } NV30FP;
 
41
        } card_priv;
 
42
        uint32_t data[NV_SHADER_MAX_PROGRAM_LENGTH];
 
43
} nv_shader_t;
 
44
 
 
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);
 
48
 
 
49
 
 
50
/*******************************************************************************
 
51
 * NV40/G70 vertex shaders
 
52
 */
 
53
 
 
54
nv_shader_t nv40_vp_exa_render;
 
55
nv_shader_t nv40_vp_video;
 
56
 
 
57
/*******************************************************************************
 
58
 * NV30/NV40/G70 fragment shaders
 
59
 */
 
60
 
 
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;
 
69
 
 
70
#endif