r600: factor out the code to initialise a buffer resource.
authorDave Airlie <airlied@redhat.com>
Thu, 31 Mar 2016 05:20:42 +0000 (15:20 +1000)
committerDave Airlie <airlied@redhat.com>
Wed, 15 Mar 2017 04:32:48 +0000 (14:32 +1000)
commit95a976b651b4e7cfd906a555bc7703ccb2c09ea0
treed2f965740b6c02157dd6a5ff090413269a38e489
parentcf2af021b9baf459edf522253f65aa4d4abc10f8
r600: factor out the code to initialise a buffer resource.

This takes the code required to initialise a buffer resource
out of the texture buffer code, into it's own function.

This is going to be used for the image support later.

Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/evergreen_state.c