intel/compiler: Remove final_program_size from brw_compile_*
The caller can now use brw_stage_prog_data::program_size which is set by the brw_compile_* functions. Cc: Jason Ekstrand <jason@jlekstrand.net> Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
This commit is contained in:
@@ -162,8 +162,7 @@ blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx,
|
||||
struct nir_shader *nir,
|
||||
struct brw_wm_prog_key *wm_key,
|
||||
bool use_repclear,
|
||||
struct brw_wm_prog_data *wm_prog_data,
|
||||
unsigned *program_size)
|
||||
struct brw_wm_prog_data *wm_prog_data)
|
||||
{
|
||||
const struct brw_compiler *compiler = blorp->compiler;
|
||||
|
||||
@@ -194,7 +193,7 @@ blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx,
|
||||
const unsigned *program =
|
||||
brw_compile_fs(compiler, blorp->driver_ctx, mem_ctx, wm_key,
|
||||
wm_prog_data, nir, NULL, -1, -1, false, use_repclear,
|
||||
NULL, program_size, NULL);
|
||||
NULL, NULL);
|
||||
|
||||
return program;
|
||||
}
|
||||
@@ -202,8 +201,7 @@ blorp_compile_fs(struct blorp_context *blorp, void *mem_ctx,
|
||||
const unsigned *
|
||||
blorp_compile_vs(struct blorp_context *blorp, void *mem_ctx,
|
||||
struct nir_shader *nir,
|
||||
struct brw_vs_prog_data *vs_prog_data,
|
||||
unsigned *program_size)
|
||||
struct brw_vs_prog_data *vs_prog_data)
|
||||
{
|
||||
const struct brw_compiler *compiler = blorp->compiler;
|
||||
|
||||
@@ -225,7 +223,7 @@ blorp_compile_vs(struct blorp_context *blorp, void *mem_ctx,
|
||||
const unsigned *program =
|
||||
brw_compile_vs(compiler, blorp->driver_ctx, mem_ctx,
|
||||
&vs_key, vs_prog_data, nir,
|
||||
false, -1, program_size, NULL);
|
||||
false, -1, NULL);
|
||||
|
||||
return program;
|
||||
}
|
||||
|
Reference in New Issue
Block a user