With intel_winsys being embedded in it, drop the "_info" suffix.
struct intel_winsys;
-struct ilo_dev_info {
+struct ilo_dev {
struct intel_winsys *winsys;
/* these mirror intel_winsys_info */
};
static inline int
-ilo_dev_gen(const struct ilo_dev_info *dev)
+ilo_dev_gen(const struct ilo_dev *dev)
{
return dev->gen_opaque;
}
static inline void
-ilo_dev_assert(const struct ilo_dev_info *dev, int min_opqaue, int max_opqaue)
+ilo_dev_assert(const struct ilo_dev *dev, int min_opqaue, int max_opqaue)
{
assert(dev->gen_opaque >= min_opqaue && dev->gen_opaque <= max_opqaue);
}
*/
void
ilo_builder_init(struct ilo_builder *builder,
- const struct ilo_dev_info *dev,
+ const struct ilo_dev *dev,
struct intel_winsys *winsys)
{
int i;
};
struct ilo_builder {
- const struct ilo_dev_info *dev;
+ const struct ilo_dev *dev;
struct intel_winsys *winsys;
uint32_t mocs;
void
ilo_builder_init(struct ilo_builder *builder,
- const struct ilo_dev_info *dev,
+ const struct ilo_dev *dev,
struct intel_winsys *winsys);
void
struct pipe_context base;
struct intel_winsys *winsys;
- struct ilo_dev_info *dev;
+ struct ilo_dev *dev;
struct util_slab_mempool transfer_mempool;
* Create a command parser.
*/
struct ilo_cp *
-ilo_cp_create(const struct ilo_dev_info *dev,
+ilo_cp_create(const struct ilo_dev *dev,
struct intel_winsys *winsys,
struct ilo_shader_cache *shc)
{
};
struct ilo_cp *
-ilo_cp_create(const struct ilo_dev_info *dev,
+ilo_cp_create(const struct ilo_dev *dev,
struct intel_winsys *winsys,
struct ilo_shader_cache *shc);
* format. Return -1 on errors.
*/
int
-ilo_translate_color_format(const struct ilo_dev_info *dev,
+ilo_translate_color_format(const struct ilo_dev *dev,
enum pipe_format format)
{
static const int format_mapping[PIPE_FORMAT_COUNT] = {
}
static bool
-ilo_format_supports_zs(const struct ilo_dev_info *dev,
+ilo_format_supports_zs(const struct ilo_dev *dev,
enum pipe_format format)
{
switch (format) {
}
static bool
-ilo_format_supports_rt(const struct ilo_dev_info *dev,
+ilo_format_supports_rt(const struct ilo_dev *dev,
enum pipe_format format)
{
const int idx = ilo_translate_format(dev, format, PIPE_BIND_RENDER_TARGET);
}
static bool
-ilo_format_supports_sampler(const struct ilo_dev_info *dev,
+ilo_format_supports_sampler(const struct ilo_dev *dev,
enum pipe_format format)
{
const int idx = ilo_translate_format(dev, format, PIPE_BIND_SAMPLER_VIEW);
}
static bool
-ilo_format_supports_vb(const struct ilo_dev_info *dev,
+ilo_format_supports_vb(const struct ilo_dev *dev,
enum pipe_format format)
{
const int idx = ilo_translate_format(dev, format, PIPE_BIND_VERTEX_BUFFER);
unsigned bindings)
{
struct ilo_screen *is = ilo_screen(screen);
- const struct ilo_dev_info *dev = &is->dev;
+ const struct ilo_dev *dev = &is->dev;
unsigned bind;
if (!util_format_is_supported(format, bindings))
ilo_init_format_functions(struct ilo_screen *is);
int
-ilo_translate_color_format(const struct ilo_dev_info *dev,
+ilo_translate_color_format(const struct ilo_dev *dev,
enum pipe_format format);
/**
* caveats that the callers should be aware of before calling this function.
*/
static inline int
-ilo_translate_format(const struct ilo_dev_info *dev,
+ilo_translate_format(const struct ilo_dev *dev,
enum pipe_format format, unsigned bind)
{
switch (bind) {
}
static inline int
-ilo_translate_render_format(const struct ilo_dev_info *dev,
+ilo_translate_render_format(const struct ilo_dev *dev,
enum pipe_format format)
{
return ilo_translate_format(dev, format, PIPE_BIND_RENDER_TARGET);
}
static inline int
-ilo_translate_texture_format(const struct ilo_dev_info *dev,
+ilo_translate_texture_format(const struct ilo_dev *dev,
enum pipe_format format)
{
return ilo_translate_format(dev, format, PIPE_BIND_SAMPLER_VIEW);
}
static inline int
-ilo_translate_vertex_format(const struct ilo_dev_info *dev,
+ilo_translate_vertex_format(const struct ilo_dev *dev,
enum pipe_format format)
{
return ilo_translate_format(dev, format, PIPE_BIND_VERTEX_BUFFER);
};
struct ilo_layout_params {
- const struct ilo_dev_info *dev;
+ const struct ilo_dev *dev;
const struct pipe_resource *templ;
bool compressed;
*/
static void
layout_init_for_transfer(struct ilo_layout *layout,
- const struct ilo_dev_info *dev,
+ const struct ilo_dev *dev,
const struct pipe_resource *templ)
{
const unsigned num_layers = (templ->target == PIPE_TEXTURE_3D) ?
* Initialize the layout. Callers should zero-initialize \p layout first.
*/
void ilo_layout_init(struct ilo_layout *layout,
- const struct ilo_dev_info *dev,
+ const struct ilo_dev *dev,
const struct pipe_resource *templ)
{
struct ilo_layout_params params;
};
void ilo_layout_init(struct ilo_layout *layout,
- const struct ilo_dev_info *dev,
+ const struct ilo_dev *dev,
const struct pipe_resource *templ);
bool
* Render Engine.
*/
struct ilo_render {
- const struct ilo_dev_info *dev;
+ const struct ilo_dev *dev;
struct ilo_builder *builder;
struct intel_bo *workaround_bo;
}
static bool
-init_dev(struct ilo_dev_info *dev, const struct intel_winsys_info *info)
+init_dev(struct ilo_dev *dev, const struct intel_winsys_info *info)
{
dev->devid = info->devid;
dev->aperture_total = info->aperture_total;
struct ilo_screen {
struct pipe_screen base;
- struct ilo_dev_info dev;
+ struct ilo_dev dev;
};
static inline struct ilo_screen *
* Create a shader state.
*/
static struct ilo_shader_state *
-ilo_shader_state_create(const struct ilo_dev_info *dev,
+ilo_shader_state_create(const struct ilo_dev *dev,
const struct ilo_state_vector *vec,
int type, const void *templ)
{
}
struct ilo_shader_state *
-ilo_shader_create_vs(const struct ilo_dev_info *dev,
+ilo_shader_create_vs(const struct ilo_dev *dev,
const struct pipe_shader_state *state,
const struct ilo_state_vector *precompile)
{
}
struct ilo_shader_state *
-ilo_shader_create_gs(const struct ilo_dev_info *dev,
+ilo_shader_create_gs(const struct ilo_dev *dev,
const struct pipe_shader_state *state,
const struct ilo_state_vector *precompile)
{
}
struct ilo_shader_state *
-ilo_shader_create_fs(const struct ilo_dev_info *dev,
+ilo_shader_create_fs(const struct ilo_dev *dev,
const struct pipe_shader_state *state,
const struct ilo_state_vector *precompile)
{
}
struct ilo_shader_state *
-ilo_shader_create_cs(const struct ilo_dev_info *dev,
+ilo_shader_create_cs(const struct ilo_dev *dev,
const struct pipe_compute_state *state,
const struct ilo_state_vector *precompile)
{
ilo_shader_cache_invalidate(struct ilo_shader_cache *shc);
struct ilo_shader_state *
-ilo_shader_create_vs(const struct ilo_dev_info *dev,
+ilo_shader_create_vs(const struct ilo_dev *dev,
const struct pipe_shader_state *state,
const struct ilo_state_vector *precompile);
struct ilo_shader_state *
-ilo_shader_create_gs(const struct ilo_dev_info *dev,
+ilo_shader_create_gs(const struct ilo_dev *dev,
const struct pipe_shader_state *state,
const struct ilo_state_vector *precompile);
struct ilo_shader_state *
-ilo_shader_create_fs(const struct ilo_dev_info *dev,
+ilo_shader_create_fs(const struct ilo_dev *dev,
const struct pipe_shader_state *state,
const struct ilo_state_vector *precompile);
struct ilo_shader_state *
-ilo_shader_create_cs(const struct ilo_dev_info *dev,
+ilo_shader_create_cs(const struct ilo_dev *dev,
const struct pipe_compute_state *state,
const struct ilo_state_vector *precompile);
ilo_create_blend_state(struct pipe_context *pipe,
const struct pipe_blend_state *state)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_blend_state *blend;
blend = MALLOC_STRUCT(ilo_blend_state);
ilo_create_sampler_state(struct pipe_context *pipe,
const struct pipe_sampler_state *state)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_sampler_cso *sampler;
sampler = MALLOC_STRUCT(ilo_sampler_cso);
ilo_create_rasterizer_state(struct pipe_context *pipe,
const struct pipe_rasterizer_state *state)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_rasterizer_state *rast;
rast = MALLOC_STRUCT(ilo_rasterizer_state);
ilo_create_depth_stencil_alpha_state(struct pipe_context *pipe,
const struct pipe_depth_stencil_alpha_state *state)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_dsa_state *dsa;
dsa = MALLOC_STRUCT(ilo_dsa_state);
unsigned num_elements,
const struct pipe_vertex_element *elements)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_ve_state *ve;
ve = MALLOC_STRUCT(ilo_ve_state);
uint shader, uint index,
struct pipe_constant_buffer *buf)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_state_vector *vec = &ilo_context(pipe)->state_vector;
struct ilo_cbuf_state *cbuf = &vec->cbuf[shader];
const unsigned count = 1;
ilo_set_framebuffer_state(struct pipe_context *pipe,
const struct pipe_framebuffer_state *state)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_state_vector *vec = &ilo_context(pipe)->state_vector;
ilo_gpe_set_fb(dev, state, &vec->fb);
unsigned num_scissors,
const struct pipe_scissor_state *scissors)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_state_vector *vec = &ilo_context(pipe)->state_vector;
ilo_gpe_set_scissor(dev, start_slot, num_scissors,
unsigned num_viewports,
const struct pipe_viewport_state *viewports)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_state_vector *vec = &ilo_context(pipe)->state_vector;
if (viewports) {
struct pipe_resource *res,
const struct pipe_sampler_view *templ)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_view_cso *view;
view = MALLOC_STRUCT(ilo_view_cso);
struct pipe_resource *res,
const struct pipe_surface *templ)
{
- const struct ilo_dev_info *dev = ilo_context(pipe)->dev;
+ const struct ilo_dev *dev = ilo_context(pipe)->dev;
struct ilo_surface_cso *surf;
surf = MALLOC_STRUCT(ilo_surface_cso);
}
void
-ilo_state_vector_init(const struct ilo_dev_info *dev,
+ilo_state_vector_init(const struct ilo_dev *dev,
struct ilo_state_vector *vec)
{
ilo_gpe_set_scissor_null(dev, &vec->scissor);
ilo_finalize_compute_states(struct ilo_context *ilo);
void
-ilo_state_vector_init(const struct ilo_dev_info *dev,
+ilo_state_vector_init(const struct ilo_dev *dev,
struct ilo_state_vector *vec);
void
}
void
-ilo_gpe_init_ve(const struct ilo_dev_info *dev,
+ilo_gpe_init_ve(const struct ilo_dev *dev,
unsigned num_states,
const struct pipe_vertex_element *states,
struct ilo_ve_state *ve);
void
-ilo_gpe_set_ve_edgeflag(const struct ilo_dev_info *dev,
+ilo_gpe_set_ve_edgeflag(const struct ilo_dev *dev,
struct ilo_ve_cso *cso);
void
-ilo_gpe_init_ve_nosrc(const struct ilo_dev_info *dev,
+ilo_gpe_init_ve_nosrc(const struct ilo_dev *dev,
int comp0, int comp1, int comp2, int comp3,
struct ilo_ve_cso *cso);
void
-ilo_gpe_set_viewport_cso(const struct ilo_dev_info *dev,
+ilo_gpe_set_viewport_cso(const struct ilo_dev *dev,
const struct pipe_viewport_state *state,
struct ilo_viewport_cso *vp);
void
-ilo_gpe_set_scissor(const struct ilo_dev_info *dev,
+ilo_gpe_set_scissor(const struct ilo_dev *dev,
unsigned start_slot,
unsigned num_states,
const struct pipe_scissor_state *states,
struct ilo_scissor_state *scissor);
void
-ilo_gpe_set_scissor_null(const struct ilo_dev_info *dev,
+ilo_gpe_set_scissor_null(const struct ilo_dev *dev,
struct ilo_scissor_state *scissor);
void
-ilo_gpe_init_rasterizer(const struct ilo_dev_info *dev,
+ilo_gpe_init_rasterizer(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_state *rasterizer);
void
-ilo_gpe_init_dsa(const struct ilo_dev_info *dev,
+ilo_gpe_init_dsa(const struct ilo_dev *dev,
const struct pipe_depth_stencil_alpha_state *state,
struct ilo_dsa_state *dsa);
void
-ilo_gpe_init_blend(const struct ilo_dev_info *dev,
+ilo_gpe_init_blend(const struct ilo_dev *dev,
const struct pipe_blend_state *state,
struct ilo_blend_state *blend);
void
-ilo_gpe_init_sampler_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_sampler_cso(const struct ilo_dev *dev,
const struct pipe_sampler_state *state,
struct ilo_sampler_cso *sampler);
void
-ilo_gpe_init_view_surface_null(const struct ilo_dev_info *dev,
+ilo_gpe_init_view_surface_null(const struct ilo_dev *dev,
unsigned width, unsigned height,
unsigned depth, unsigned level,
struct ilo_view_surface *surf);
void
-ilo_gpe_init_view_surface_for_buffer(const struct ilo_dev_info *dev,
+ilo_gpe_init_view_surface_for_buffer(const struct ilo_dev *dev,
const struct ilo_buffer *buf,
unsigned offset, unsigned size,
unsigned struct_size,
struct ilo_view_surface *surf);
void
-ilo_gpe_init_view_surface_for_texture(const struct ilo_dev_info *dev,
+ilo_gpe_init_view_surface_for_texture(const struct ilo_dev *dev,
const struct ilo_texture *tex,
enum pipe_format format,
unsigned first_level,
struct ilo_view_surface *surf);
void
-ilo_gpe_init_zs_surface(const struct ilo_dev_info *dev,
+ilo_gpe_init_zs_surface(const struct ilo_dev *dev,
const struct ilo_texture *tex,
enum pipe_format format, unsigned level,
unsigned first_layer, unsigned num_layers,
struct ilo_zs_surface *zs);
void
-ilo_gpe_init_vs_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_vs_cso(const struct ilo_dev *dev,
const struct ilo_shader_state *vs,
struct ilo_shader_cso *cso);
void
-ilo_gpe_init_gs_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_gs_cso(const struct ilo_dev *dev,
const struct ilo_shader_state *gs,
struct ilo_shader_cso *cso);
void
-ilo_gpe_init_fs_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_fs_cso(const struct ilo_dev *dev,
const struct ilo_shader_state *fs,
struct ilo_shader_cso *cso);
void
-ilo_gpe_set_fb(const struct ilo_dev_info *dev,
+ilo_gpe_set_fb(const struct ilo_dev *dev,
const struct pipe_framebuffer_state *state,
struct ilo_fb_state *fb);
#include "ilo_state_3d.h"
static void
-rasterizer_init_clip(const struct ilo_dev_info *dev,
+rasterizer_init_clip(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_clip *clip)
{
}
static void
-rasterizer_init_sf_depth_offset_gen6(const struct ilo_dev_info *dev,
+rasterizer_init_sf_depth_offset_gen6(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_sf *sf)
{
}
static void
-rasterizer_init_sf_gen6(const struct ilo_dev_info *dev,
+rasterizer_init_sf_gen6(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_sf *sf)
{
}
static uint32_t
-rasterizer_get_sf_raster_gen8(const struct ilo_dev_info *dev,
+rasterizer_get_sf_raster_gen8(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state)
{
uint32_t dw = 0;
}
static void
-rasterizer_init_sf_gen8(const struct ilo_dev_info *dev,
+rasterizer_init_sf_gen8(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_sf *sf)
{
}
static void
-rasterizer_init_wm_gen6(const struct ilo_dev_info *dev,
+rasterizer_init_wm_gen6(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_wm *wm)
{
}
static void
-rasterizer_init_wm_gen7(const struct ilo_dev_info *dev,
+rasterizer_init_wm_gen7(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_wm *wm)
{
}
static uint32_t
-rasterizer_get_wm_gen8(const struct ilo_dev_info *dev,
+rasterizer_get_wm_gen8(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state)
{
uint32_t dw;
}
void
-ilo_gpe_init_rasterizer(const struct ilo_dev_info *dev,
+ilo_gpe_init_rasterizer(const struct ilo_dev *dev,
const struct pipe_rasterizer_state *state,
struct ilo_rasterizer_state *rasterizer)
{
}
static void
-fs_init_cso_gen6(const struct ilo_dev_info *dev,
+fs_init_cso_gen6(const struct ilo_dev *dev,
const struct ilo_shader_state *fs,
struct ilo_shader_cso *cso)
{
}
static uint32_t
-fs_get_wm_gen7(const struct ilo_dev_info *dev,
+fs_get_wm_gen7(const struct ilo_dev *dev,
const struct ilo_shader_state *fs)
{
uint32_t dw;
}
static void
-fs_init_cso_gen7(const struct ilo_dev_info *dev,
+fs_init_cso_gen7(const struct ilo_dev *dev,
const struct ilo_shader_state *fs,
struct ilo_shader_cso *cso)
{
}
static uint32_t
-fs_get_psx_gen8(const struct ilo_dev_info *dev,
+fs_get_psx_gen8(const struct ilo_dev *dev,
const struct ilo_shader_state *fs)
{
uint32_t dw;
}
static uint32_t
-fs_get_wm_gen8(const struct ilo_dev_info *dev,
+fs_get_wm_gen8(const struct ilo_dev *dev,
const struct ilo_shader_state *fs)
{
ILO_DEV_ASSERT(dev, 8, 8);
}
static void
-fs_init_cso_gen8(const struct ilo_dev_info *dev,
+fs_init_cso_gen8(const struct ilo_dev *dev,
const struct ilo_shader_state *fs,
struct ilo_shader_cso *cso)
{
}
void
-ilo_gpe_init_fs_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_fs_cso(const struct ilo_dev *dev,
const struct ilo_shader_state *fs,
struct ilo_shader_cso *cso)
{
};
static void
-zs_init_info_null(const struct ilo_dev_info *dev,
+zs_init_info_null(const struct ilo_dev *dev,
struct ilo_zs_surface_info *info)
{
ILO_DEV_ASSERT(dev, 6, 8);
}
static void
-zs_init_info(const struct ilo_dev_info *dev,
+zs_init_info(const struct ilo_dev *dev,
const struct ilo_texture *tex,
enum pipe_format format, unsigned level,
unsigned first_layer, unsigned num_layers,
}
void
-ilo_gpe_init_zs_surface(const struct ilo_dev_info *dev,
+ilo_gpe_init_zs_surface(const struct ilo_dev *dev,
const struct ilo_texture *tex,
enum pipe_format format, unsigned level,
unsigned first_layer, unsigned num_layers,
}
static void
-viewport_get_guardband(const struct ilo_dev_info *dev,
+viewport_get_guardband(const struct ilo_dev *dev,
int center_x, int center_y,
int *min_gbx, int *max_gbx,
int *min_gby, int *max_gby)
}
void
-ilo_gpe_set_viewport_cso(const struct ilo_dev_info *dev,
+ilo_gpe_set_viewport_cso(const struct ilo_dev *dev,
const struct pipe_viewport_state *state,
struct ilo_viewport_cso *vp)
{
}
static uint32_t
-blend_get_rt_blend_enable_gen6(const struct ilo_dev_info *dev,
+blend_get_rt_blend_enable_gen6(const struct ilo_dev *dev,
const struct pipe_rt_blend_state *rt,
bool dst_alpha_forced_one)
{
}
static uint32_t
-blend_get_rt_blend_enable_gen8(const struct ilo_dev_info *dev,
+blend_get_rt_blend_enable_gen8(const struct ilo_dev *dev,
const struct pipe_rt_blend_state *rt,
bool dst_alpha_forced_one,
bool *independent_alpha)
}
static void
-blend_init_cso_gen6(const struct ilo_dev_info *dev,
+blend_init_cso_gen6(const struct ilo_dev *dev,
const struct pipe_blend_state *state,
struct ilo_blend_state *blend,
unsigned index)
}
static bool
-blend_init_cso_gen8(const struct ilo_dev_info *dev,
+blend_init_cso_gen8(const struct ilo_dev *dev,
const struct pipe_blend_state *state,
struct ilo_blend_state *blend,
unsigned index)
}
static uint32_t
-blend_get_logicop_enable_gen6(const struct ilo_dev_info *dev,
+blend_get_logicop_enable_gen6(const struct ilo_dev *dev,
const struct pipe_blend_state *state)
{
ILO_DEV_ASSERT(dev, 6, 7.5);
}
static uint32_t
-blend_get_logicop_enable_gen8(const struct ilo_dev_info *dev,
+blend_get_logicop_enable_gen8(const struct ilo_dev *dev,
const struct pipe_blend_state *state)
{
ILO_DEV_ASSERT(dev, 8, 8);
}
static uint32_t
-blend_get_alpha_mod_gen6(const struct ilo_dev_info *dev,
+blend_get_alpha_mod_gen6(const struct ilo_dev *dev,
const struct pipe_blend_state *state,
bool dual_blend)
{
}
static uint32_t
-blend_get_alpha_mod_gen8(const struct ilo_dev_info *dev,
+blend_get_alpha_mod_gen8(const struct ilo_dev *dev,
const struct pipe_blend_state *state,
bool dual_blend)
{
}
static uint32_t
-blend_get_ps_blend_gen8(const struct ilo_dev_info *dev, uint32_t rt_dw0)
+blend_get_ps_blend_gen8(const struct ilo_dev *dev, uint32_t rt_dw0)
{
int rgb_src, rgb_dst, a_src, a_dst;
uint32_t dw;
}
void
-ilo_gpe_init_blend(const struct ilo_dev_info *dev,
+ilo_gpe_init_blend(const struct ilo_dev *dev,
const struct pipe_blend_state *state,
struct ilo_blend_state *blend)
{
}
static uint32_t
-dsa_get_stencil_enable_gen6(const struct ilo_dev_info *dev,
+dsa_get_stencil_enable_gen6(const struct ilo_dev *dev,
const struct pipe_stencil_state *stencil0,
const struct pipe_stencil_state *stencil1)
{
}
static uint32_t
-dsa_get_stencil_enable_gen8(const struct ilo_dev_info *dev,
+dsa_get_stencil_enable_gen8(const struct ilo_dev *dev,
const struct pipe_stencil_state *stencil0,
const struct pipe_stencil_state *stencil1)
{
}
static uint32_t
-dsa_get_depth_enable_gen6(const struct ilo_dev_info *dev,
+dsa_get_depth_enable_gen6(const struct ilo_dev *dev,
const struct pipe_depth_state *state)
{
uint32_t dw;
}
static uint32_t
-dsa_get_depth_enable_gen8(const struct ilo_dev_info *dev,
+dsa_get_depth_enable_gen8(const struct ilo_dev *dev,
const struct pipe_depth_state *state)
{
uint32_t dw;
}
static uint32_t
-dsa_get_alpha_enable_gen6(const struct ilo_dev_info *dev,
+dsa_get_alpha_enable_gen6(const struct ilo_dev *dev,
const struct pipe_alpha_state *state)
{
uint32_t dw;
}
static uint32_t
-dsa_get_alpha_enable_gen8(const struct ilo_dev_info *dev,
+dsa_get_alpha_enable_gen8(const struct ilo_dev *dev,
const struct pipe_alpha_state *state)
{
uint32_t dw;
}
void
-ilo_gpe_init_dsa(const struct ilo_dev_info *dev,
+ilo_gpe_init_dsa(const struct ilo_dev *dev,
const struct pipe_depth_stencil_alpha_state *state,
struct ilo_dsa_state *dsa)
{
}
void
-ilo_gpe_set_scissor(const struct ilo_dev_info *dev,
+ilo_gpe_set_scissor(const struct ilo_dev *dev,
unsigned start_slot,
unsigned num_states,
const struct pipe_scissor_state *states,
}
void
-ilo_gpe_set_scissor_null(const struct ilo_dev_info *dev,
+ilo_gpe_set_scissor_null(const struct ilo_dev *dev,
struct ilo_scissor_state *scissor)
{
unsigned i;
}
static void
-fb_set_blend_caps(const struct ilo_dev_info *dev,
+fb_set_blend_caps(const struct ilo_dev *dev,
enum pipe_format format,
struct ilo_fb_blend_caps *caps)
{
}
void
-ilo_gpe_set_fb(const struct ilo_dev_info *dev,
+ilo_gpe_set_fb(const struct ilo_dev *dev,
const struct pipe_framebuffer_state *state,
struct ilo_fb_state *fb)
{
#include "ilo_state_3d.h"
static void
-ve_init_cso(const struct ilo_dev_info *dev,
+ve_init_cso(const struct ilo_dev *dev,
const struct pipe_vertex_element *state,
unsigned vb_index,
struct ilo_ve_cso *cso)
}
void
-ilo_gpe_init_ve(const struct ilo_dev_info *dev,
+ilo_gpe_init_ve(const struct ilo_dev *dev,
unsigned num_states,
const struct pipe_vertex_element *states,
struct ilo_ve_state *ve)
}
void
-ilo_gpe_set_ve_edgeflag(const struct ilo_dev_info *dev,
+ilo_gpe_set_ve_edgeflag(const struct ilo_dev *dev,
struct ilo_ve_cso *cso)
{
int format;
}
void
-ilo_gpe_init_ve_nosrc(const struct ilo_dev_info *dev,
+ilo_gpe_init_ve_nosrc(const struct ilo_dev *dev,
int comp0, int comp1, int comp2, int comp3,
struct ilo_ve_cso *cso)
{
}
void
-ilo_gpe_init_vs_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_vs_cso(const struct ilo_dev *dev,
const struct ilo_shader_state *vs,
struct ilo_shader_cso *cso)
{
}
static void
-gs_init_cso_gen6(const struct ilo_dev_info *dev,
+gs_init_cso_gen6(const struct ilo_dev *dev,
const struct ilo_shader_state *gs,
struct ilo_shader_cso *cso)
{
}
static void
-gs_init_cso_gen7(const struct ilo_dev_info *dev,
+gs_init_cso_gen7(const struct ilo_dev *dev,
const struct ilo_shader_state *gs,
struct ilo_shader_cso *cso)
{
}
void
-ilo_gpe_init_gs_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_gs_cso(const struct ilo_dev *dev,
const struct ilo_shader_state *gs,
struct ilo_shader_cso *cso)
{
}
static void
-view_init_null_gen6(const struct ilo_dev_info *dev,
+view_init_null_gen6(const struct ilo_dev *dev,
unsigned width, unsigned height,
unsigned depth, unsigned level,
struct ilo_view_surface *surf)
}
static void
-view_init_for_buffer_gen6(const struct ilo_dev_info *dev,
+view_init_for_buffer_gen6(const struct ilo_dev *dev,
const struct ilo_buffer *buf,
unsigned offset, unsigned size,
unsigned struct_size,
}
static void
-view_init_for_texture_gen6(const struct ilo_dev_info *dev,
+view_init_for_texture_gen6(const struct ilo_dev *dev,
const struct ilo_texture *tex,
enum pipe_format format,
unsigned first_level,
}
static void
-view_init_null_gen7(const struct ilo_dev_info *dev,
+view_init_null_gen7(const struct ilo_dev *dev,
unsigned width, unsigned height,
unsigned depth, unsigned level,
struct ilo_view_surface *surf)
}
static void
-view_init_for_buffer_gen7(const struct ilo_dev_info *dev,
+view_init_for_buffer_gen7(const struct ilo_dev *dev,
const struct ilo_buffer *buf,
unsigned offset, unsigned size,
unsigned struct_size,
}
static void
-view_init_for_texture_gen7(const struct ilo_dev_info *dev,
+view_init_for_texture_gen7(const struct ilo_dev *dev,
const struct ilo_texture *tex,
enum pipe_format format,
unsigned first_level,
}
void
-ilo_gpe_init_view_surface_null(const struct ilo_dev_info *dev,
+ilo_gpe_init_view_surface_null(const struct ilo_dev *dev,
unsigned width, unsigned height,
unsigned depth, unsigned level,
struct ilo_view_surface *surf)
}
void
-ilo_gpe_init_view_surface_for_buffer(const struct ilo_dev_info *dev,
+ilo_gpe_init_view_surface_for_buffer(const struct ilo_dev *dev,
const struct ilo_buffer *buf,
unsigned offset, unsigned size,
unsigned struct_size,
}
void
-ilo_gpe_init_view_surface_for_texture(const struct ilo_dev_info *dev,
+ilo_gpe_init_view_surface_for_texture(const struct ilo_dev *dev,
const struct ilo_texture *tex,
enum pipe_format format,
unsigned first_level,
}
static void
-sampler_init_border_color_gen6(const struct ilo_dev_info *dev,
+sampler_init_border_color_gen6(const struct ilo_dev *dev,
const union pipe_color_union *color,
uint32_t *dw, int num_dwords)
{
}
void
-ilo_gpe_init_sampler_cso(const struct ilo_dev_info *dev,
+ilo_gpe_init_sampler_cso(const struct ilo_dev *dev,
const struct pipe_sampler_state *state,
struct ilo_sampler_cso *sampler)
{
* Information about a shader state.
*/
struct ilo_shader_info {
- const struct ilo_dev_info *dev;
+ const struct ilo_dev *dev;
int type;
const struct tgsi_token *tokens;
* Initialize the toy compiler.
*/
void
-toy_compiler_init(struct toy_compiler *tc, const struct ilo_dev_info *dev)
+toy_compiler_init(struct toy_compiler *tc, const struct ilo_dev *dev)
{
memset(tc, 0, sizeof(*tc));
* Toy compiler.
*/
struct toy_compiler {
- const struct ilo_dev_info *dev;
+ const struct ilo_dev *dev;
struct toy_inst templ;
struct util_slab_mempool mempool;
}
void
-toy_compiler_init(struct toy_compiler *tc, const struct ilo_dev_info *dev);
+toy_compiler_init(struct toy_compiler *tc, const struct ilo_dev *dev);
void
toy_compiler_cleanup(struct toy_compiler *tc);
toy_compiler_assemble(struct toy_compiler *tc, int *size);
const struct toy_compaction_table *
-toy_compiler_get_compaction_table(const struct ilo_dev_info *dev);
+toy_compiler_get_compaction_table(const struct ilo_dev *dev);
void
-toy_compiler_disassemble(const struct ilo_dev_info *dev,
+toy_compiler_disassemble(const struct ilo_dev *dev,
const void *kernel, int size,
bool dump_hex);
#define CG_REG_NUM(origin) ((origin) >> CG_REG_SHIFT)
struct codegen {
- const struct ilo_dev_info *dev;
+ const struct ilo_dev *dev;
const struct toy_inst *inst;
int pc;
};
const struct toy_compaction_table *
-toy_compiler_get_compaction_table(const struct ilo_dev_info *dev)
+toy_compiler_get_compaction_table(const struct ilo_dev *dev)
{
switch (ilo_dev_gen(dev)) {
case ILO_GEN(8):
* Prepare for generating an instruction.
*/
static void
-codegen_prepare(struct codegen *cg, const struct ilo_dev_info *dev,
+codegen_prepare(struct codegen *cg, const struct ilo_dev *dev,
const struct toy_inst *inst, int pc, int rect_linear_width)
{
int i;
};
struct disasm_inst {
- const struct ilo_dev_info *dev;
+ const struct ilo_dev *dev;
unsigned has_jip:1;
unsigned has_uip:1;
}
static void
-disasm_uncompact_3src(const struct ilo_dev_info *dev,
+disasm_uncompact_3src(const struct ilo_dev *dev,
uint64_t compact, uint32_t *dw)
{
const struct toy_compaction_table *tbl =
}
static void
-disasm_uncompact(const struct ilo_dev_info *dev,
+disasm_uncompact(const struct ilo_dev *dev,
uint64_t compact, uint32_t *dw)
{
const struct toy_compaction_table *tbl =
}
void
-toy_compiler_disassemble(const struct ilo_dev_info *dev,
+toy_compiler_disassemble(const struct ilo_dev *dev,
const void *kernel, int size,
bool dump_hex)
{