i965: Define FIRST_SPILL_MRF and FIRST_PULL_LOAD_MRF only once and in one place

That should make tracking where we do spills and pull loads a bit easier.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
Iago Toral Quiroga
2015-09-22 13:14:52 +02:00
parent 36e82b137d
commit 3141906fa3
4 changed files with 6 additions and 7 deletions
-2
View File
@@ -50,8 +50,6 @@
#include "glsl/glsl_types.h"
#include "program/sampler.h"
#define FIRST_PULL_LOAD_MRF(gen) ((gen) == 6 ? 16 : 13)
using namespace brw;
void
@@ -30,8 +30,6 @@
#include "glsl/glsl_types.h"
#include "glsl/ir_optimization.h"
#define FIRST_SPILL_MRF(gen) (gen == 6 ? 21 : 13)
using namespace brw;
static void
+6
View File
@@ -42,6 +42,12 @@ extern "C" {
/** Maximum SEND message length */
#define BRW_MAX_MSG_LENGTH 15
/** First MRF register used by pull loads */
#define FIRST_SPILL_MRF(gen) ((gen) == 6 ? 21 : 13)
/** First MRF register used by spills */
#define FIRST_PULL_LOAD_MRF(gen) ((gen) == 6 ? 16 : 13)
/* brw_context.h has a forward declaration of brw_inst, so name the struct. */
typedef struct brw_inst {
uint64_t data[2];
@@ -26,9 +26,6 @@
#include "glsl/ir_uniform.h"
#include "program/sampler.h"
#define FIRST_SPILL_MRF(gen) (gen == 6 ? 21 : 13)
#define FIRST_PULL_LOAD_MRF(gen) (gen == 6 ? 16 : 13)
namespace brw {
vec4_instruction::vec4_instruction(enum opcode opcode, const dst_reg &dst,