mesa: move gl_program::is_arb_asm to shader_info
This will be used from radeonsi in the next commit. Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11972>
This commit is contained in:

committed by
Marge Bot

parent
bff8a948f7
commit
8cd2e82c89
@@ -2500,7 +2500,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx,
|
||||
unsigned columns = 0;
|
||||
|
||||
int dmul;
|
||||
if (ctx->Const.PackedDriverUniformStorage && !prog->is_arb_asm) {
|
||||
if (ctx->Const.PackedDriverUniformStorage && !prog->info.is_arb_asm) {
|
||||
dmul = storage->type->vector_elements * sizeof(float);
|
||||
} else {
|
||||
dmul = 4 * sizeof(float);
|
||||
@@ -2593,7 +2593,7 @@ _mesa_associate_uniform_storage(struct gl_context *ctx,
|
||||
* initializers in the source code to be copied over.
|
||||
*/
|
||||
unsigned array_elements = MAX2(1, storage->array_elements);
|
||||
if (ctx->Const.PackedDriverUniformStorage && !prog->is_arb_asm &&
|
||||
if (ctx->Const.PackedDriverUniformStorage && !prog->info.is_arb_asm &&
|
||||
(storage->is_bindless || !storage->type->contains_opaque())) {
|
||||
const int dmul = storage->type->is_64bit() ? 2 : 1;
|
||||
const unsigned components =
|
||||
|
Reference in New Issue
Block a user