};
int format;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
switch (util_format_get_nr_components(state->src_format)) {
case 1: comp[1] = GEN6_VFCOMP_STORE_0;
{
unsigned i;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
ve->count = num_states;
ve->vb_count = 0;
int start_grf, vue_read_len, max_threads;
uint32_t dw2, dw4, dw5;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
start_grf = ilo_shader_get_kernel_param(vs, ILO_KERNEL_URB_DATA_START_REG);
vue_read_len = ilo_shader_get_kernel_param(vs, ILO_KERNEL_INPUT_COUNT);
int start_grf, vue_read_len, max_threads;
uint32_t dw2, dw4, dw5, dw6;
- ILO_GPE_VALID_GEN(dev, 6, 6);
+ ILO_DEV_ASSERT(dev, 6, 6);
if (ilo_shader_get_type(gs) == PIPE_SHADER_GEOMETRY) {
start_grf = ilo_shader_get_kernel_param(gs,
{
uint32_t dw1, dw2, dw3;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
dw1 = GEN6_CLIP_DW1_STATISTICS;
int line_width, point_width;
uint32_t dw1, dw2, dw3;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
/*
* Scale the constant term. The minimum representable value used by the HW
{
uint32_t dw5, dw6;
- ILO_GPE_VALID_GEN(dev, 6, 6);
+ ILO_DEV_ASSERT(dev, 6, 6);
/* only the FF unit states are set, as in GEN7 */
int start_grf, input_count, interps, max_threads;
uint32_t dw2, dw4, dw5, dw6;
- ILO_GPE_VALID_GEN(dev, 6, 6);
+ ILO_DEV_ASSERT(dev, 6, 6);
start_grf = ilo_shader_get_kernel_param(fs, ILO_KERNEL_URB_DATA_START_REG);
input_count = ilo_shader_get_kernel_param(fs, ILO_KERNEL_INPUT_COUNT);
zs_init_info_null(const struct ilo_dev_info *dev,
struct ilo_zs_surface_info *info)
{
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
memset(info, 0, sizeof(*info));
{
bool separate_stencil;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
memset(info, 0, sizeof(*info));
struct ilo_zs_surface_info info;
uint32_t dw1, dw2, dw3, dw4, dw5, dw6;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
if (tex)
zs_init_info(dev, tex, format, level, first_layer, num_layers, &info);
const float scale_z = fabs(state->scale[2]);
int min_gbx, max_gbx, min_gby, max_gby;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
viewport_get_guardband(dev,
(int) state->translate[0],
{
unsigned num_cso, i;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
if (state->independent_blend_enable) {
num_cso = Elements(blend->cso);
const struct pipe_alpha_state *alpha = &state->alpha;
uint32_t *dw;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
STATIC_ASSERT(Elements(dsa->payload) >= 3);
dw = dsa->payload;
{
unsigned i;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
for (i = 0; i < num_states; i++) {
uint16_t min_x, min_y, max_x, max_y;
{
uint32_t *dw;
- ILO_GPE_VALID_GEN(dev, 6, 6);
+ ILO_DEV_ASSERT(dev, 6, 6);
assert(width >= 1 && height >= 1 && depth >= 1);
int surface_format, num_entries;
uint32_t *dw;
- ILO_GPE_VALID_GEN(dev, 6, 6);
+ ILO_DEV_ASSERT(dev, 6, 6);
/*
* For SURFTYPE_BUFFER, a SURFACE_STATE specifies an element of a
int width, height, depth, pitch, lod;
uint32_t *dw;
- ILO_GPE_VALID_GEN(dev, 6, 6);
+ ILO_DEV_ASSERT(dev, 6, 6);
surface_type = ilo_gpe_gen6_translate_texture(tex->base.target);
assert(surface_type != GEN6_SURFTYPE_BUFFER);
color->f[0], color->f[1], color->f[2], color->f[3],
};
- ILO_GPE_VALID_GEN(dev, 6, 6);
+ ILO_DEV_ASSERT(dev, 6, 6);
assert(num_dwords >= 12);
bool clamp_is_to_edge;
uint32_t dw0, dw1, dw3;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
memset(sampler, 0, sizeof(*sampler));
const struct pipe_surface *first;
unsigned first_idx;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
util_copy_framebuffer_state(&fb->state, state);
#include "ilo_shader.h"
#include "ilo_gpe.h"
-#define ILO_GPE_VALID_GEN(dev, min_gen, max_gen) \
- assert(ilo_dev_gen(dev) >= ILO_GEN(min_gen) && \
- ilo_dev_gen(dev) <= ILO_GEN(max_gen))
-
/**
* Translate winsys tiling to hardware tiling.
*/
int output_count, vue_offset, vue_len;
const struct ilo_kernel_routing *routing;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
assert(num_dwords == 13);
if (!fs) {
unsigned pos;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert(bo_offset % ((store_qword) ? 8 : 4) == 0);
const uint32_t dw0 = GEN6_MI_CMD(MI_LOAD_REGISTER_IMM) | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert(reg % 4 == 0);
unsigned pos;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert(reg % 4 == 0 && bo_offset % 4 == 0);
unsigned pos;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert(bo_offset % 64 == 0);
unsigned pos;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/* 4K-page aligned */
assert(((general_state_size | dynamic_state_size |
const uint32_t dw0 = GEN6_RENDER_CMD(COMMON, STATE_SIP) | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
const uint32_t dw0 = GEN6_RENDER_CMD(SINGLE_DW, 3DSTATE_VF_STATISTICS) |
enable;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
ilo_builder_batch_write(builder, cmd_len, &dw0);
}
const uint32_t dw0 = GEN6_RENDER_CMD(SINGLE_DW, PIPELINE_SELECT) |
pipeline;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/* 3D or media */
assert(pipeline == 0x0 || pipeline == 0x1);
(cmd_len - 2);
uint32_t dw2, dw4, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
dw2 = (max_threads - 1) << 16 |
num_urb_entries << 8 |
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
assert(buf % 32 == 0);
/* gen6_push_constant_buffer() allocates buffers in 256-bit units */
GEN6_RENDER_CMD(MEDIA, MEDIA_INTERFACE_DESCRIPTOR_LOAD) | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
assert(offset % 32 == 0);
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
int vs_num_entries, gs_num_entries;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
/* in 1024-bit URB rows */
vs_alloc_size = (vs_entry_size + row_size - 1) / row_size;
uint32_t dw0, *dw;
unsigned hw_idx, pos;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 82:
int comp0, int comp1, int comp2, int comp3,
struct ilo_ve_cso *cso)
{
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
STATIC_ASSERT(Elements(cso->payload) >= 2);
cso->payload[0] = GEN6_VE_STATE_DW0_VALID;
{
int format;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 94:
uint32_t dw0, *dw;
unsigned i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 93:
unsigned pos;
uint32_t dw0, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
if (!buf)
return;
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
const struct ilo_shader_cso *cso;
uint32_t dw2, dw4, dw5, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
if (!vs) {
ilo_builder_batch_pointer(builder, cmd_len, &dw);
const uint32_t dw0 = GEN6_RENDER_CMD(3D, 3DSTATE_GS) | (cmd_len - 2);
uint32_t dw1, dw2, dw4, dw5, dw6, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
if (gs) {
const struct ilo_shader_cso *cso;
const uint32_t dw0 = GEN6_RENDER_CMD(3D, 3DSTATE_CLIP) | (cmd_len - 2);
uint32_t dw1, dw2, dw3, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
if (rasterizer) {
int interps;
const uint32_t dw0 = GEN6_RENDER_CMD(3D, 3DSTATE_SF) | (cmd_len - 2);
uint32_t payload_raster[6], payload_sbe[13], *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_gpe_gen6_fill_3dstate_sf_raster(builder->dev, rasterizer,
1, PIPE_FORMAT_NONE, payload_raster, Elements(payload_raster));
const struct ilo_shader_cso *fs_cso;
uint32_t dw2, dw4, dw5, dw6, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
if (!fs) {
/* see brwCreateContext() */
uint32_t buf_dw[4], buf_enabled;
uint32_t dw0, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
assert(num_bufs <= 4);
/*
uint32_t buf_dw[4], buf_enabled;
uint32_t dw0, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
assert(num_bufs <= 4);
/*
uint32_t buf_dw[4], buf_enabled;
uint32_t dw0, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
assert(num_bufs <= 4);
/*
const unsigned valid_mask = 0xf;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
sample_mask &= valid_mask;
int rect_limit;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
if (ilo_dev_gen(builder->dev) >= ILO_GEN(7)) {
rect_limit = 16383;
unsigned width, height;
uint32_t dw3;
- ILO_GPE_VALID_GEN(dev, 6, 7.5);
+ ILO_DEV_ASSERT(dev, 6, 7.5);
if (ilo_dev_gen(dev) >= ILO_GEN(7)) {
shift_w = 4;
unsigned pos;
uint32_t dw0, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
dw0 = (ilo_dev_gen(builder->dev) >= ILO_GEN(7)) ?
GEN7_RENDER_CMD(3D, 3DSTATE_DEPTH_BUFFER) :
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert(x_offset >= 0 && x_offset <= 31);
assert(y_offset >= 0 && y_offset <= 31);
uint32_t *dw;
int i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
STATIC_ASSERT(Elements(pattern->stipple) == 32);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
uint32_t *dw;
unsigned inverse;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert((pattern & 0xffff) == pattern);
assert(factor >= 1 && factor <= 256);
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
(cmd_len - 2);
uint32_t dw1, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
assert(index >= 0 && index < 4);
dw1 = index << GEN6_SVBI_DW1_INDEX__SHIFT;
(cmd_len - 2);
uint32_t dw1, dw2, dw3, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
dw1 = (pixel_location_center) ?
GEN6_MULTISAMPLE_DW1_PIXLOC_CENTER : GEN6_MULTISAMPLE_DW1_PIXLOC_UL_CORNER;
uint32_t dw0, *dw;
unsigned pos;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
dw0 = (ilo_dev_gen(builder->dev) >= ILO_GEN(7)) ?
GEN7_RENDER_CMD(3D, 3DSTATE_STENCIL_BUFFER) :
uint32_t dw0, *dw;
unsigned pos;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
dw0 = (ilo_dev_gen(builder->dev) >= ILO_GEN(7)) ?
GEN7_RENDER_CMD(3D, 3DSTATE_HIER_DEPTH_BUFFER) :
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
unsigned pos;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert(bo_offset % ((write_qword) ? 8 : 4) == 0);
((info->indexed) ? ib->draw_start_offset : 0);
uint32_t dw0, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
dw0 = GEN6_RENDER_CMD(3D, 3DPRIMITIVE) |
vb_access |
uint32_t state_offset, *dw;
int i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
state_offset = ilo_builder_state_pointer(builder,
ILO_BUILDER_ITEM_BLOB, state_align, state_len, &dw);
uint32_t state_offset, *dw;
unsigned i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 262:
uint32_t state_offset, *dw;
unsigned i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 193:
uint32_t state_offset, *dw;
unsigned i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 385:
const int state_len = 6;
uint32_t state_offset, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
state_offset = ilo_builder_state_pointer(builder,
ILO_BUILDER_ITEM_COLOR_CALC, state_align, state_len, &dw);
uint32_t state_offset, *dw;
unsigned num_targets, i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 376:
const int state_align = 64;
const int state_len = 3;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
STATIC_ASSERT(Elements(dsa->payload) >= state_len);
const int state_align = 32;
const int state_len = 2 * num_viewports;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 2 part 1, page 263:
const int state_align = 32;
const int state_len = num_surface_states;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 4 part 1, page 69:
const int state_len = (ilo_dev_gen(builder->dev) >= ILO_GEN(7)) ? 8 : 6;
uint32_t state_offset;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
state_offset = ilo_builder_surface_write(builder, ILO_BUILDER_ITEM_SURFACE,
state_align, state_len, surf->payload);
enum pipe_format elem_format;
struct ilo_view_surface surf;
- ILO_GPE_VALID_GEN(builder->dev, 6, 6);
+ ILO_DEV_ASSERT(builder->dev, 6, 6);
bo_offset = so->buffer_offset + so_info->output[so_index].dst_offset * 4;
struct_size = so_info->stride[so_info->output[so_index].output_buffer] * 4;
uint32_t state_offset, *dw;
int i;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
/*
* From the Sandy Bridge PRM, volume 4 part 1, page 101:
const int state_align = 32;
const int state_len = (ilo_dev_gen(builder->dev) >= ILO_GEN(7)) ? 4 : 12;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
assert(Elements(sampler->payload) >= 3 + state_len);
uint32_t state_offset;
char *buf;
- ILO_GPE_VALID_GEN(builder->dev, 6, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 6, 7.5);
state_offset = ilo_builder_state_pointer(builder,
ILO_BUILDER_ITEM_BLOB, state_align, state_len, (uint32_t **) &buf);
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
uint32_t dw0 = GEN75_RENDER_CMD(3D, 3DSTATE_VF) | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7.5, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7.5, 7.5);
if (enable_cut_index)
dw0 |= GEN75_VF_DW0_CUT_INDEX_ENABLE;
subop | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
const struct ilo_shader_cso *cso;
uint32_t dw2, dw4, dw5, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
if (!gs) {
ilo_builder_batch_pointer(builder, cmd_len, &dw);
const int num_samples = 1;
uint32_t payload[6], *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
ilo_gpe_gen6_fill_3dstate_sf_raster(builder->dev,
rasterizer, num_samples, zs_format,
const int num_samples = 1;
uint32_t dw1, dw2, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
/* see ilo_gpe_init_rasterizer_wm() */
if (rasterizer) {
uint32_t payload[6], *dw;
int total_read_length, i;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
/* VS, HS, DS, GS, and PS variants */
assert(subop >= GEN6_RENDER_OPCODE_3DSTATE_CONSTANT_VS &&
(cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
/*
* From the Ivy Bridge PRM, volume 2 part 1, page 294:
const uint32_t dw0 = GEN7_RENDER_CMD(3D, 3DSTATE_HS) | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
assert(!hs);
const uint32_t dw0 = GEN7_RENDER_CMD(3D, 3DSTATE_TE) | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
const uint32_t dw0 = GEN7_RENDER_CMD(3D, 3DSTATE_DS) | (cmd_len - 2);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
assert(!ds);
uint32_t dw1, dw2, *dw;
int read_len;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
if (!enable) {
dw1 = 0 << GEN7_SO_DW1_RENDER_STREAM_SELECT__SHIFT;
const uint32_t dw0 = GEN7_RENDER_CMD(3D, 3DSTATE_SBE) | (cmd_len - 2);
uint32_t payload[13], *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
ilo_gpe_gen6_fill_3dstate_sf_sbe(builder->dev,
rasterizer, fs, payload, Elements(payload));
const struct ilo_shader_cso *cso;
uint32_t dw2, dw4, dw5, *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
if (!fs) {
int max_threads;
int alloc_size, num_entries, min_entries, max_entries;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
/* VS, HS, DS, and GS variants */
assert(subop >= GEN7_RENDER_OPCODE_3DSTATE_URB_VS &&
uint32_t *dw;
int end;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
/* VS, HS, DS, GS, and PS variants */
assert(subop >= GEN7_RENDER_OPCODE_3DSTATE_PUSH_CONSTANT_ALLOC_VS &&
int buffer_selects, num_entries, i;
uint16_t so_decls[128];
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
buffer_selects = 0;
num_entries = 0;
unsigned pos;
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
if (!so_target || !so_target->buffer) {
ilo_builder_batch_pointer(builder, cmd_len, &dw);
((info->indexed) ? ib->draw_start_offset : 0);
uint32_t *dw;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
ilo_builder_batch_pointer(builder, cmd_len, &dw);
dw[0] = dw0;
uint32_t state_offset, *dw;
unsigned i;
- ILO_GPE_VALID_GEN(builder->dev, 7, 7.5);
+ ILO_DEV_ASSERT(builder->dev, 7, 7.5);
/*
* From the Ivy Bridge PRM, volume 2 part 1, page 270: