diff options
author | Jason Ekstrand <[email protected]> | 2016-06-02 18:32:11 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2016-07-15 15:53:48 -0700 |
commit | f8984b918a1db8869bae6a3ffa8883365342f98e (patch) | |
tree | 05fc0314b4d2d45eb73ab66e4871baa8f8c0995e /src/intel/isl/isl.c | |
parent | 815847e2b3db405f7f5a97459e6ed2f2b3b4d09e (diff) |
isl: Add support for filling out surface states all the way back to gen4
Signed-off-by: Jason Ekstrand <[email protected]>
Reviewed-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/intel/isl/isl.c')
-rw-r--r-- | src/intel/isl/isl.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c index 435cffd8a65..92658ec7af7 100644 --- a/src/intel/isl/isl.c +++ b/src/intel/isl/isl.c @@ -1276,6 +1276,20 @@ isl_surf_fill_state_s(const struct isl_device *dev, void *state, } switch (ISL_DEV_GEN(dev)) { + case 4: + if (ISL_DEV_IS_G4X(dev)) { + /* G45 surface state is the same as gen5 */ + isl_gen5_surf_fill_state_s(dev, state, info); + } else { + isl_gen4_surf_fill_state_s(dev, state, info); + } + break; + case 5: + isl_gen5_surf_fill_state_s(dev, state, info); + break; + case 6: + isl_gen6_surf_fill_state_s(dev, state, info); + break; case 7: if (ISL_DEV_IS_HASWELL(dev)) { isl_gen75_surf_fill_state_s(dev, state, info); @@ -1299,6 +1313,14 @@ isl_buffer_fill_state_s(const struct isl_device *dev, void *state, const struct isl_buffer_fill_state_info *restrict info) { switch (ISL_DEV_GEN(dev)) { + case 4: + case 5: + /* Gen 4-5 are all the same when it comes to buffer surfaces */ + isl_gen5_buffer_fill_state_s(state, info); + break; + case 6: + isl_gen6_buffer_fill_state_s(state, info); + break; case 7: if (ISL_DEV_IS_HASWELL(dev)) { isl_gen75_buffer_fill_state_s(state, info); |