mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
intel/blorp: brw_sampler_prog_key_data::swizzles is only and should only accessed in crocus
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com> Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/24438>
This commit is contained in:
parent
66880eeaec
commit
846d620632
1 changed files with 0 additions and 11 deletions
|
|
@ -23,8 +23,6 @@
|
|||
|
||||
#include <errno.h>
|
||||
|
||||
#include "program/prog_instruction.h"
|
||||
|
||||
#include "blorp_priv.h"
|
||||
#include "compiler/brw_compiler.h"
|
||||
#include "compiler/brw_nir.h"
|
||||
|
|
@ -252,26 +250,17 @@ blorp_params_init(struct blorp_params *params)
|
|||
params->num_layers = 1;
|
||||
}
|
||||
|
||||
static void
|
||||
blorp_init_base_prog_key(struct brw_base_prog_key *key)
|
||||
{
|
||||
for (int i = 0; i < BRW_MAX_SAMPLERS; i++)
|
||||
key->tex.swizzles[i] = SWIZZLE_XYZW;
|
||||
}
|
||||
|
||||
void
|
||||
brw_blorp_init_wm_prog_key(struct brw_wm_prog_key *wm_key)
|
||||
{
|
||||
memset(wm_key, 0, sizeof(*wm_key));
|
||||
wm_key->nr_color_regions = 1;
|
||||
blorp_init_base_prog_key(&wm_key->base);
|
||||
}
|
||||
|
||||
void
|
||||
brw_blorp_init_cs_prog_key(struct brw_cs_prog_key *cs_key)
|
||||
{
|
||||
memset(cs_key, 0, sizeof(*cs_key));
|
||||
blorp_init_base_prog_key(&cs_key->base);
|
||||
}
|
||||
|
||||
const unsigned *
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue