nir: Get rid of nir_register::is_packed
All we ever do is initialize it to zero, clone it, print it, and validate it. No one ever sets or uses it. Acked-by: Karol Herbst <kherbst@redhat.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
@@ -456,17 +456,6 @@ typedef struct nir_register {
|
||||
/** whether this register is local (per-function) or global (per-shader) */
|
||||
bool is_global;
|
||||
|
||||
/**
|
||||
* If this flag is set to true, then accessing channels >= num_components
|
||||
* is well-defined, and simply spills over to the next array element. This
|
||||
* is useful for backends that can do per-component accessing, in
|
||||
* particular scalar backends. By setting this flag and making
|
||||
* num_components equal to 1, structures can be packed tightly into
|
||||
* registers and then registers can be accessed per-component to get to
|
||||
* each structure member, even if it crosses vec4 boundaries.
|
||||
*/
|
||||
bool is_packed;
|
||||
|
||||
/** set of nir_srcs where this register is used (read from) */
|
||||
struct list_head uses;
|
||||
|
||||
|
Reference in New Issue
Block a user