ac: replace glc,slc with cache_policy for stores
[mesa.git] / src / gallium / drivers / radeonsi / si_shader_tgsi_mem.c
index 8dcc1a552c69e8f7e8b493a7e1a3a4700763f7d4..74081c64599f939d18fd98b1239ea0b613cd5fe4 100644 (file)
@@ -635,9 +635,7 @@ static void store_emit_buffer(struct si_shader_context *ctx,
                }
 
                ac_build_buffer_store_dword(&ctx->ac, resource, data, count,
-                                           voff, ctx->i32_0, 0,
-                                           !!(cache_policy & ac_glc),
-                                           !!(cache_policy & ac_slc),
+                                           voff, ctx->i32_0, 0, cache_policy,
                                            false);
        }
 }
@@ -732,8 +730,7 @@ static void store_emit(
                                             ac_build_gather_values(&ctx->ac, chans, num_channels),
                                             vindex, ctx->i32_0 /* voffset */,
                                             num_channels,
-                                            !!(args.cache_policy & ac_glc),
-                                            false);
+                                            args.cache_policy);
        } else {
                args.opcode = ac_image_store;
                args.data[0] = ac_build_gather_values(&ctx->ac, chans, 4);