};
const struct gen_device_info *
-brw_get_device_info(int devid)
+gen_get_device_info(int devid)
{
const struct gen_device_info *devinfo;
switch (devid) {
}
const char *
-brw_get_device_name(int devid)
+gen_get_device_name(int devid)
{
switch (devid) {
#undef CHIPSET
/** @} */
};
-const struct gen_device_info *brw_get_device_info(int devid);
-const char *brw_get_device_name(int devid);
+const struct gen_device_info *gen_get_device_info(int devid);
+const char *gen_get_device_name(int devid);
bool ok;
struct isl_device dev;
- isl_device_init(&dev, brw_get_device_info(BDW_GT2_DEVID),
+ isl_device_init(&dev, gen_get_device_info(BDW_GT2_DEVID),
/*bit6_swizzle*/ false);
struct isl_surf surf;
bool ok;
struct isl_device dev;
- isl_device_init(&dev, brw_get_device_info(BDW_GT2_DEVID),
+ isl_device_init(&dev, gen_get_device_info(BDW_GT2_DEVID),
/*bit6_swizzle*/ false);
struct isl_surf surf;
bool ok;
struct isl_device dev;
- isl_device_init(&dev, brw_get_device_info(BDW_GT2_DEVID),
+ isl_device_init(&dev, gen_get_device_info(BDW_GT2_DEVID),
/*bit6_swizzle*/ false);
struct isl_surf surf;
if (gd == NULL)
return NULL;
- dev_info = brw_get_device_info(pciid);
+ dev_info = gen_get_device_info(pciid);
gd->devinfo.gen = dev_info->gen;
gd->devinfo.is_cherryview = dev_info->is_cherryview;
goto fail;
}
- device->name = brw_get_device_name(device->chipset_id);
- device->info = brw_get_device_info(device->chipset_id);
+ device->name = gen_get_device_name(device->chipset_id);
+ device->info = gen_get_device_info(device->chipset_id);
if (!device->info) {
result = vk_error(VK_ERROR_INCOMPATIBLE_DRIVER);
goto fail;
{
struct gl_context *ctx = &brw->ctx;
const struct intel_screen *screen = brw->intelScreen;
- const struct brw_device_info *devinfo = screen->devinfo;
+ const struct gen_device_info *devinfo = screen->devinfo;
/* FINISHME: Do this for all platforms that the kernel supports */
if (brw->is_cherryview &&
};
static const char *const *
-dp_rc_msg_type(const struct brw_device_info *devinfo)
+dp_rc_msg_type(const struct gen_device_info *devinfo)
{
return (devinfo->gen >= 9 ? dp_rc_msg_type_gen9 :
devinfo->gen >= 7 ? dp_rc_msg_type_gen7 :
unsigned response_length,
bool per_sample)
{
- const struct brw_device_info *devinfo = p->devinfo;
+ const struct gen_device_info *devinfo = p->devinfo;
assert(devinfo->gen >= 9);
const unsigned msg_subtype =
brw_inst_exec_size(devinfo, p->current) == BRW_EXECUTE_16 ? 0 : 1;
fs_visitor::emit_non_coherent_fb_read(const fs_builder &bld, const fs_reg &dst,
unsigned target)
{
- const struct brw_device_info *devinfo = bld.shader->devinfo;
+ const struct gen_device_info *devinfo = bld.shader->devinfo;
assert(bld.shader->stage == MESA_SHADER_FRAGMENT);
const brw_wm_prog_key *wm_key =
}
enum isl_dim_layout
-get_isl_dim_layout(const struct brw_device_info *devinfo, uint32_t tiling,
+get_isl_dim_layout(const struct gen_device_info *devinfo, uint32_t tiling,
GLenum target)
{
switch (target) {
get_isl_surf_dim(GLenum target);
enum isl_dim_layout
-get_isl_dim_layout(const struct brw_device_info *devinfo, uint32_t tiling,
+get_isl_dim_layout(const struct gen_device_info *devinfo, uint32_t tiling,
GLenum target);
void
return false;
intelScreen->deviceID = drm_intel_bufmgr_gem_get_devid(intelScreen->bufmgr);
- intelScreen->devinfo = brw_get_device_info(intelScreen->deviceID);
+ intelScreen->devinfo = gen_get_device_info(intelScreen->deviceID);
if (!intelScreen->devinfo)
return false;