2 * Copyright © 2013 Intel Corporation
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 (including the next
12 * paragraph) shall be included in all copies or substantial portions of the
15 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
18 * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
20 * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
26 #include "brw_device_info.h"
28 static const struct brw_device_info brw_device_info_i965
= {
32 .max_wm_threads
= 8 * 4,
38 static const struct brw_device_info brw_device_info_g4x
= {
43 .max_wm_threads
= 10 * 5,
49 static const struct brw_device_info brw_device_info_ilk
= {
53 .max_wm_threads
= 12 * 6,
59 static const struct brw_device_info brw_device_info_snb_gt1
= {
62 .has_hiz_and_separate_stencil
= true,
65 .max_gs_threads
= 21, /* conservative; 24 if rendering disabled. */
70 .max_vs_entries
= 256,
71 .max_gs_entries
= 256,
75 static const struct brw_device_info brw_device_info_snb_gt2
= {
78 .has_hiz_and_separate_stencil
= true,
86 .max_vs_entries
= 256,
87 .max_gs_entries
= 256,
91 #define GEN7_FEATURES \
93 .has_hiz_and_separate_stencil = true, \
94 .must_use_separate_stencil = true, \
97 static const struct brw_device_info brw_device_info_ivb_gt1
= {
98 GEN7_FEATURES
, .is_ivybridge
= true, .gt
= 1,
100 .max_gs_threads
= 36,
101 .max_wm_threads
= 48,
104 .min_vs_entries
= 32,
105 .max_vs_entries
= 512,
106 .max_gs_entries
= 192,
110 static const struct brw_device_info brw_device_info_ivb_gt2
= {
111 GEN7_FEATURES
, .is_ivybridge
= true, .gt
= 2,
112 .max_vs_threads
= 128,
113 .max_gs_threads
= 128,
114 .max_wm_threads
= 172,
117 .min_vs_entries
= 32,
118 .max_vs_entries
= 704,
119 .max_gs_entries
= 320,
123 static const struct brw_device_info brw_device_info_byt
= {
124 GEN7_FEATURES
, .is_baytrail
= true, .gt
= 1,
126 .max_vs_threads
= 36,
127 .max_gs_threads
= 36,
128 .max_wm_threads
= 48,
131 .min_vs_entries
= 32,
132 .max_vs_entries
= 512,
133 .max_gs_entries
= 192,
137 static const struct brw_device_info brw_device_info_hsw_gt1
= {
138 GEN7_FEATURES
, .is_haswell
= true, .gt
= 1,
139 .max_vs_threads
= 70,
140 .max_gs_threads
= 70,
141 .max_wm_threads
= 102,
144 .min_vs_entries
= 32,
145 .max_vs_entries
= 640,
146 .max_gs_entries
= 256,
150 static const struct brw_device_info brw_device_info_hsw_gt2
= {
151 GEN7_FEATURES
, .is_haswell
= true, .gt
= 2,
152 .max_vs_threads
= 280,
153 .max_gs_threads
= 256,
154 .max_wm_threads
= 204,
157 .min_vs_entries
= 64,
158 .max_vs_entries
= 1664,
159 .max_gs_entries
= 640,
163 static const struct brw_device_info brw_device_info_hsw_gt3
= {
164 GEN7_FEATURES
, .is_haswell
= true, .gt
= 3,
165 .max_vs_threads
= 280,
166 .max_gs_threads
= 256,
167 .max_wm_threads
= 408,
170 .min_vs_entries
= 64,
171 .max_vs_entries
= 1664,
172 .max_gs_entries
= 640,
176 const struct brw_device_info
*
177 brw_get_device_info(int devid
)
181 #define CHIPSET(id, family, name) case id: return &brw_device_info_##family;
182 #include "pci_ids/i965_pci_ids.h"
184 fprintf(stderr
, "Unknown Intel device.");