Mesa (master): i965: Delete dead brw_program_reloc function.
Kenneth Graunke
kwg at kemper.freedesktop.org
Tue Jul 18 22:48:11 UTC 2017
Module: Mesa
Branch: master
Commit: 77844406d56a62408ced3b996ff7c85880cdb4b6
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=77844406d56a62408ced3b996ff7c85880cdb4b6
Author: Kenneth Graunke <kenneth at whitecape.org>
Date: Mon Jul 17 23:57:04 2017 -0700
i965: Delete dead brw_program_reloc function.
Rafael eliminated the last use of brw_program_reloc recently.
---
src/mesa/drivers/dri/i965/intel_batchbuffer.h | 15 ---------------
1 file changed, 15 deletions(-)
diff --git a/src/mesa/drivers/dri/i965/intel_batchbuffer.h b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
index 2783ba3c0f..f1a5c1fd51 100644
--- a/src/mesa/drivers/dri/i965/intel_batchbuffer.h
+++ b/src/mesa/drivers/dri/i965/intel_batchbuffer.h
@@ -74,21 +74,6 @@ uint64_t brw_emit_reloc(struct intel_batchbuffer *batch, uint32_t batch_offset,
struct brw_bo *target, uint32_t target_offset,
uint32_t read_domains, uint32_t write_domain);
-static inline uint32_t
-brw_program_reloc(struct brw_context *brw, uint32_t state_offset,
- uint32_t prog_offset)
-{
- if (brw->gen >= 5) {
- /* Using state base address. */
- return prog_offset;
- }
-
- brw_emit_reloc(&brw->batch, state_offset, brw->cache.bo, prog_offset,
- I915_GEM_DOMAIN_INSTRUCTION, 0);
-
- return brw->cache.bo->offset64 + prog_offset;
-}
-
#define USED_BATCH(batch) ((uintptr_t)((batch).map_next - (batch).map))
static inline uint32_t float_as_int(float f)
More information about the mesa-commit
mailing list