File: usc_gen8.h

package info (click to toggle)
intel-graphics-compiler 1.0.12504.6-1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 83,912 kB
  • sloc: cpp: 910,147; lisp: 202,655; ansic: 15,197; python: 4,025; yacc: 2,241; lex: 1,570; pascal: 244; sh: 104; makefile: 25
file content (102 lines) | stat: -rw-r--r-- 3,811 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
/*========================== begin_copyright_notice ============================

Copyright (C) 2019-2021 Intel Corporation

SPDX-License-Identifier: MIT

============================= end_copyright_notice ===========================*/

#ifndef STRUCTURE_ALINGMENT_VERIFICATION
#pragma once
#endif

#include "usc_gen7_types.h"

namespace USC
{

/*****************************************************************************\
\*****************************************************************************/
USC_PARAM()
struct SCompilerOutputVertexShader_Gen8 : public SCompilerOutputVertexShader_Gen7
{
    // ### DW5 3DSTATE_VS ###
    unsigned int   m_SIMD8DispatchEnable;    // SIMD8 Dispatch Enable (DW5, bit 2) 

    // ### DW6 3DSTATE_VS ###
    unsigned int   m_VertexURBEntryOutputReadOffset;  //(DW6, bits 26..21)
    unsigned int   m_VertexURBEntryOutputLength;      //(DW6, bits 20..16)

    PADDING_4_BYTES
};

/*****************************************************************************\
Note: If any additional Gen8 field appears add USC_PARAM() before declaration.
\*****************************************************************************/
struct SCompilerOutputHullShader_Gen8 : public SCompilerOutputHullShader_Gen7
{
    //identical to Gen7
};

/*****************************************************************************\
\*****************************************************************************/
USC_PARAM()
struct SCompilerOutputDomainShader_Gen8 : public SCompilerOutputDomainShader_Gen7
{
    // ### DW7 3DSTATE_DS ###
    unsigned int   m_SIMD8DispatchEnable;               //(DW7, bit 3)

    // ### DW8 3DSTATE_DS ###
    unsigned int   m_VertexURBEntryOutputReadOffset;    //(DW8, bits 26..21)
    unsigned int   m_VertexURBEntryOutputLength;        //(DW8, bits 20..16)

    PADDING_4_BYTES

    // clip cull fields are in Gen7 "Other"
};

/*****************************************************************************\
\*****************************************************************************/
struct SCompilerOutputGeometryShader_Gen8 : public SCompilerOutputGeometryShader_Gen7
{
    // ### DW1 3DSTATE_GS ###
    void*          m_pKernelProgram;        //Kernel Start Pointer - Rendering Enabled (DW1, bit 31..6)
    unsigned int   m_KernelProgramSize;     //Kernel Program Size

    // ### DW3 3DSTATE_GS ###    
    unsigned int   m_ExpectedVertexCount;   // Expected vertex count per input object  (DW3, bit 5..0)

    // ### DW6 3DSTATE_GS ###    
    unsigned int   m_OutputVertexSize;      //Output Vertex Size - Rendering Enabled   (DW6, bit 28..23)

    // ### DW9 3DSTATE_GS ###
    unsigned int   m_VertexURBEntryOutputReadOffset; //GS Vertex URB Entry Output Read Offset by SBE (DW9, bit 26..21)
    unsigned int   m_VertexURBEntryOutputLength;     //GS Vertex URB Entry Output Length by SBE      (DW9, bit 20..16)

    // ### DW8 3DSTATE_GS ###
    unsigned int   m_StaticOutputVertexCount; //Static Output Vertex Count (DW8, bit 26..16)
    bool           m_StaticOutput;            //StaticOutput               (DW8, bit 30)

    PADDING_1_BYTE
    PADDING_2_BYTES
    PADDING_4_BYTES_x64_ONLY
};

/*****************************************************************************\
\*****************************************************************************/
USC_PARAM()
struct SCompilerOutputPixelShader_Gen8 : public SCompilerOutputPixelShader_Gen7
{
    unsigned int m_IsFrontFaceUsed;
    unsigned int m_DoesNotWriteRT;
};

/*****************************************************************************\
\*****************************************************************************/
struct SCompilerOutputComputeShader_Gen8 : public SCompilerOutputComputeShader_Gen7
{
    // TODO!!! Any new output required for Gen8?  

};

} // namespace USC