i965/blorp: Remove some i965-isms from genX_blorp_exec.h
Signed-off-by: Jason Ekstrand <jason@jlekstrand.net> Reviewed-by: Topi Pohjolainen <topi.pohjolainen@intel.com>
This commit is contained in:
@@ -141,7 +141,7 @@ struct brw_blorp_prog_data
|
||||
*/
|
||||
uint32_t flat_inputs;
|
||||
unsigned num_varying_inputs;
|
||||
GLbitfield64 inputs_read;
|
||||
uint64_t inputs_read;
|
||||
};
|
||||
|
||||
static inline unsigned
|
||||
|
||||
@@ -209,7 +209,7 @@ blorp_emit_input_varying_data(struct blorp_batch *batch,
|
||||
for (unsigned i = 0; i < max_num_varyings; i++) {
|
||||
const gl_varying_slot attr = VARYING_SLOT_VAR0 + i;
|
||||
|
||||
if (!(params->wm_prog_data->inputs_read & BITFIELD64_BIT(attr)))
|
||||
if (!(params->wm_prog_data->inputs_read & (1ull << attr)))
|
||||
continue;
|
||||
|
||||
memcpy(inputs, inputs_src + i * 4, vec4_size_in_bytes);
|
||||
@@ -415,7 +415,7 @@ blorp_emit_sf_config(struct blorp_batch *batch,
|
||||
}
|
||||
|
||||
blorp_emit(batch, GENX(3DSTATE_SBE), sbe) {
|
||||
sbe.VertexURBEntryReadOffset = BRW_SF_URB_ENTRY_READ_OFFSET;
|
||||
sbe.VertexURBEntryReadOffset = 1;
|
||||
sbe.NumberofSFOutputAttributes = prog_data->num_varying_inputs;
|
||||
sbe.VertexURBEntryReadLength = brw_blorp_get_urb_length(prog_data);
|
||||
sbe.ForceVertexURBEntryReadLength = true;
|
||||
@@ -443,7 +443,7 @@ blorp_emit_sf_config(struct blorp_batch *batch,
|
||||
}
|
||||
|
||||
blorp_emit(batch, GENX(3DSTATE_SBE), sbe) {
|
||||
sbe.VertexURBEntryReadOffset = BRW_SF_URB_ENTRY_READ_OFFSET;
|
||||
sbe.VertexURBEntryReadOffset = 1;
|
||||
if (prog_data) {
|
||||
sbe.NumberofSFOutputAttributes = prog_data->num_varying_inputs;
|
||||
sbe.VertexURBEntryReadLength = brw_blorp_get_urb_length(prog_data);
|
||||
@@ -463,7 +463,7 @@ blorp_emit_sf_config(struct blorp_batch *batch,
|
||||
sf.MultisampleRasterizationMode = params->dst.surf.samples > 1 ?
|
||||
MSRASTMODE_ON_PATTERN : MSRASTMODE_OFF_PIXEL;
|
||||
|
||||
sf.VertexURBEntryReadOffset = BRW_SF_URB_ENTRY_READ_OFFSET;
|
||||
sf.VertexURBEntryReadOffset = 1;
|
||||
if (prog_data) {
|
||||
sf.NumberofSFOutputAttributes = prog_data->num_varying_inputs;
|
||||
sf.VertexURBEntryReadLength = brw_blorp_get_urb_length(prog_data);
|
||||
|
||||
Reference in New Issue
Block a user