diff options
author | Tom Stellard <[email protected]> | 2012-06-21 19:32:43 -0400 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2012-07-09 13:41:18 +0000 |
commit | eb065f5d9d1159af3a88a64a7606c9b6d67dc3e3 (patch) | |
tree | 42d4f5370dda569352c444fe2da3a00427c5989e /src/gallium/drivers/r600/evergreen_compute_internal.c | |
parent | 9d3644137427893b1deb629410ebc68c89f26d74 (diff) |
r600g: Use a texture as the underlying resource for compute_memory_pool
This the first step towards being able to use evergreen_cb to bind RATs.
Diffstat (limited to 'src/gallium/drivers/r600/evergreen_compute_internal.c')
-rw-r--r-- | src/gallium/drivers/r600/evergreen_compute_internal.c | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/src/gallium/drivers/r600/evergreen_compute_internal.c b/src/gallium/drivers/r600/evergreen_compute_internal.c index 13c82f0e156..ca44837a432 100644 --- a/src/gallium/drivers/r600/evergreen_compute_internal.c +++ b/src/gallium/drivers/r600/evergreen_compute_internal.c @@ -298,20 +298,13 @@ void evergreen_set_rat( evergreen_compute_get_gpu_format(&fmt, bo); } - if (linear) { - evergreen_reg_set(res, - R_028C70_CB_COLOR0_INFO, S_028C70_RAT(1) - | S_028C70_ARRAY_MODE(V_028C70_ARRAY_LINEAR_ALIGNED) - | S_028C70_FORMAT(fmt.format) - | S_028C70_NUMBER_TYPE(fmt.number_type) - ); - evergreen_emit_force_reloc(res); - } else { - assert(0 && "TODO"); - ///TODO -// evergreen_reg_set(res, R_028C70_CB_COLOR0_INFO, S_028C70_RAT(1) | S_028C70_ARRAY_MODE(????)); -// evergreen_emit_force_reloc(res); - } + evergreen_reg_set(res, + R_028C70_CB_COLOR0_INFO, S_028C70_RAT(1) + | S_028C70_ARRAY_MODE(V_028C70_ARRAY_LINEAR_ALIGNED) + | S_028C70_FORMAT(fmt.format) + | S_028C70_NUMBER_TYPE(fmt.number_type) + ); + evergreen_emit_force_reloc(res); evergreen_reg_set(res, R_028C74_CB_COLOR0_ATTRIB, S_028C74_NON_DISP_TILING_ORDER(1)); evergreen_emit_force_reloc(res); |