.prefix.limit_trig_input_range = screen->driconf.limit_trig_input_range
#define BRW_KEY_INIT(gen, prog_id, limit_trig_input) \
.base.program_string_id = prog_id, \
- .base.limit_trig_input_range = limit_trig_input, \
- .base.tex.swizzles[0 ... BRW_MAX_SAMPLERS - 1] = 0x688
+ .base.limit_trig_input_range = limit_trig_input
struct iris_threaded_compile_job {
struct iris_screen *screen;
struct brw_sampler_prog_key_data {
/**
* EXT_texture_swizzle and DEPTH_TEXTURE_MODE swizzles.
+ *
+ * This field is not consumed by the back-end compiler and is only relevant
+ * for the crocus OpenGL driver for Broadwell and earlier hardware.
*/
uint16_t swizzles[BRW_MAX_SAMPLERS];
#include "vk_render_pass.h"
#include "vk_util.h"
-/* Needed for SWIZZLE macros */
-#include "program/prog_instruction.h"
-
struct lower_set_vtx_and_prim_count_state {
nir_variable *primitive_count;
};
}
static void
-populate_sampler_prog_key(const struct intel_device_info *devinfo,
- struct brw_sampler_prog_key_data *key)
-{
- for (int i = 0; i < BRW_MAX_SAMPLERS; i++) {
- /* Assume color sampler, no swizzling. (Works for BDW+) */
- key->swizzles[i] = SWIZZLE_XYZW;
- }
-}
-
-static void
populate_base_prog_key(const struct anv_device *device,
bool robust_buffer_acccess,
struct brw_base_prog_key *key)
key->robust_buffer_access = robust_buffer_acccess;
key->limit_trig_input_range =
device->physical->instance->limit_trig_input_range;
-
- populate_sampler_prog_key(device->info, &key->tex);
}
static void
#include "vk_render_pass.h"
#include "vk_util.h"
-/* Needed for SWIZZLE macros */
-#include "program/prog_instruction.h"
-
/* Eventually, this will become part of anv_CreateShader. Unfortunately,
* we can't do that yet because we don't have the ability to copy nir.
*/
populate_sampler_prog_key(const struct intel_device_info *devinfo,
struct brw_sampler_prog_key_data *key)
{
- /* XXX: Handle texture swizzle on HSW- */
- for (int i = 0; i < BRW_MAX_SAMPLERS; i++) {
- /* Assume color sampler, no swizzling. (Works for BDW+) */
- key->swizzles[i] = SWIZZLE_XYZW;
- }
+ /* XXX: Handle texture swizzle Pre-HSW */
}
static void