From d01aa7f6ead0e615128c027a37f30cfef4e111ab Mon Sep 17 00:00:00 2001 From: bsegovia Date: Fri, 5 Aug 2011 07:00:57 +0000 Subject: [PATCH] Started to clean up and simplify vfe state setting --- src/intel/intel_gpgpu.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/intel/intel_gpgpu.c b/src/intel/intel_gpgpu.c index 7096c10..a5910b9 100644 --- a/src/intel/intel_gpgpu.c +++ b/src/intel/intel_gpgpu.c @@ -324,11 +324,7 @@ struct intel_gpgpu struct opaque_sampler_state samplers[MAX_SAMPLERS]; struct { - uint32_t vfe_start; /* start of vfe entries in urb */ - uint32_t cs_start; /* start of cs entries in urb */ - uint32_t num_vfe_entries; uint32_t num_cs_entries; - uint32_t size_vfe_entry; /* size of one entry in 512bit elements */ uint32_t size_cs_entry; /* size of one entry in 512bit elements */ } urb; @@ -433,9 +429,6 @@ gpgpu_load_vfe_state(intel_gpgpu_t *state) vfe->vfe1.bypass_gateway_ctl = 1; vfe->vfe1.reset_gateway_timer = 1; vfe->vfe1.max_threads = state->max_threads - 1; - //vfe->vfe1.urb_entries = state->urb.num_vfe_entries; - //vfe->vfe3.urbe_size = state->urb.size_vfe_entry; - //vfe->vfe3.curbe_size = state->urb.size_cs_entry*state->urb.num_cs_entries; vfe->vfe1.urb_entries = 64; vfe->vfe3.curbe_size = 63; vfe->vfe3.urbe_size = 13; @@ -606,12 +599,8 @@ gpgpu_state_init(intel_gpgpu_t *state, int32_t i; /* URB */ - state->urb.vfe_start = 0; - state->urb.num_vfe_entries = num_vfe_entries; - state->urb.size_vfe_entry = size_vfe_entry; state->urb.num_cs_entries = num_cs_entries; state->urb.size_cs_entry = size_cs_entry; - state->urb.cs_start = state->urb.vfe_start + state->urb.num_vfe_entries * state->urb.size_vfe_entry; state->max_threads = max_threads; /* constant buffer */ -- 2.7.4